[Mlir-commits] [mlir] [mlir] Exclude CAPI test targets from default build target (PR #96545)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 24 13:06:32 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Tom Stellard (tstellar)

<details>
<summary>Changes</summary>

This helps reduce the build time for users that want to build MLIR, but don't want to run the tests.

---
Full diff: https://github.com/llvm/llvm-project/pull/96545.diff


1 Files Affected:

- (modified) mlir/test/CAPI/CMakeLists.txt (+1) 


``````````diff
diff --git a/mlir/test/CAPI/CMakeLists.txt b/mlir/test/CAPI/CMakeLists.txt
index 76bd4e60f77b2..ad312764b3e06 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)

``````````

</details>


https://github.com/llvm/llvm-project/pull/96545


More information about the Mlir-commits mailing list