Skip to content

Commit 4f3c9da

Browse files
authored
[mlir] Exclude CAPI test targets from default build target (llvm#96545)
This helps reduce the build time for users that want to build MLIR, but don't want to run the tests.
1 parent 46a2abb commit 4f3c9da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/test/CAPI/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function(_add_capi_test_executable name)
1010
PARTIAL_SOURCES_INTENDED
1111
${ARG_UNPARSED_ARGUMENTS})
1212
set_target_properties(${name} PROPERTIES FOLDER "MLIR/Tests")
13+
set_target_properties(${name} PROPERTIES EXCLUDE_FROM_ALL ON)
1314

1415
llvm_update_compile_flags(${name})
1516
if(MLIR_BUILD_MLIR_C_DYLIB)

0 commit comments

Comments
 (0)