forked from OSchip/llvm-project
[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
This commit is contained in:
parent
7bc1baea6e
commit
96e3fb2416
|
@ -1,14 +1,20 @@
|
||||||
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
||||||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
||||||
|
|
||||||
|
if(MLIR_INCLUDE_TESTS)
|
||||||
|
set(test_libs
|
||||||
|
MLIRTestDialect
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(LIBS
|
set(LIBS
|
||||||
${conversion_libs}
|
${conversion_libs}
|
||||||
${dialect_libs}
|
${dialect_libs}
|
||||||
|
${test_libs}
|
||||||
MLIRDialect
|
MLIRDialect
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRReduceLib
|
MLIRReduceLib
|
||||||
MLIRTestDialect
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_llvm_tool(mlir-reduce
|
add_llvm_tool(mlir-reduce
|
||||||
|
|
Loading…
Reference in New Issue