Skip to content

Commit

Permalink
[mlir] Exclude CAPI test targets from default build target
Browse files Browse the repository at this point in the history
This helps reduce the build time for users that want to build MLIR,
but don't want to run the tests.
  • Loading branch information
tstellar committed Jun 24, 2024
1 parent d30b082 commit f3c8548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/test/CAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3c8548

Please sign in to comment.