From f3c85486b93480bbe30a9744fa68a88c64a55e83 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 24 Jun 2024 20:02:44 +0000 Subject: [PATCH] [mlir] Exclude CAPI test targets from default build target This helps reduce the build time for users that want to build MLIR, but don't want to run the tests. --- mlir/test/CAPI/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/test/CAPI/CMakeLists.txt b/mlir/test/CAPI/CMakeLists.txt index 76bd4e60f77b24..ad312764b3e06c 100644 --- a/mlir/test/CAPI/CMakeLists.txt +++ b/mlir/test/CAPI/CMakeLists.txt @@ -10,6 +10,7 @@ function(_add_capi_test_executable name) PARTIAL_SOURCES_INTENDED ${ARG_UNPARSED_ARGUMENTS}) set_target_properties(${name} PROPERTIES FOLDER "MLIR/Tests") + set_target_properties(${name} PROPERTIES EXCLUDE_FROM_ALL ON) llvm_update_compile_flags(${name}) if(MLIR_BUILD_MLIR_C_DYLIB)