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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 8 16:37:08 PDT 2024


Author: Tom Stellard
Date: 2024-07-08T16:37:05-07:00
New Revision: 4f3c9dabecc6074f8455ca23ba70020d5c556e63

URL: https://github.com/llvm/llvm-project/commit/4f3c9dabecc6074f8455ca23ba70020d5c556e63
DIFF: https://github.com/llvm/llvm-project/commit/4f3c9dabecc6074f8455ca23ba70020d5c556e63.diff

LOG: [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.

Added: 
    

Modified: 
    mlir/test/CAPI/CMakeLists.txt

Removed: 
    


################################################################################
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)


        


More information about the Mlir-commits mailing list