From 4f3c9dabecc6074f8455ca23ba70020d5c556e63 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 8 Jul 2024 16:37:05 -0700 Subject: [PATCH] [mlir] Exclude CAPI test targets from default build target (#96545) 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)