[Mlir-commits] [mlir] 96e3fb2 - [mlir] Unbreak building mlir-reduce
Marius Brehler
llvmlistbot at llvm.org
Mon Jul 5 08:10:31 PDT 2021
Author: Marius Brehler
Date: 2021-07-05T17:08:53+02:00
New Revision: 96e3fb2416f6ce9bae94313b30bdfeeaddb2de36
URL: https://github.com/llvm/llvm-project/commit/96e3fb2416f6ce9bae94313b30bdfeeaddb2de36
DIFF: https://github.com/llvm/llvm-project/commit/96e3fb2416f6ce9bae94313b30bdfeeaddb2de36.diff
LOG: [mlir] Unbreak building mlir-reduce
Unbreaks building mlir-reduce when `DLLVM_INCLUDE_TESTS` is set to OFF.
The dependency MLIRTestDialect is only available if building with tests.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D105434
Added:
Modified:
mlir/tools/mlir-reduce/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/tools/mlir-reduce/CMakeLists.txt b/mlir/tools/mlir-reduce/CMakeLists.txt
index 63ccb94a7cc74..8893316f53b8c 100644
--- a/mlir/tools/mlir-reduce/CMakeLists.txt
+++ b/mlir/tools/mlir-reduce/CMakeLists.txt
@@ -1,14 +1,20 @@
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
+if(MLIR_INCLUDE_TESTS)
+ set(test_libs
+ MLIRTestDialect
+ )
+endif()
+
set(LIBS
${conversion_libs}
${dialect_libs}
+ ${test_libs}
MLIRDialect
MLIRIR
MLIRPass
MLIRReduceLib
- MLIRTestDialect
)
add_llvm_tool(mlir-reduce
More information about the Mlir-commits
mailing list