[Mlir-commits] [mlir] [mlir][cmake] Export MLIR_LINK_MLIR_DYLIB in MLIRConfig.cmake (PR #207336)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 8 19:21:18 PDT 2026
================
@@ -60,6 +60,11 @@ set(MLIR_CONFIG_TABLEGEN_EXE "${MLIR_TABLEGEN_EXE}")
set(MLIR_CONFIG_PDLL_TABLEGEN_EXE "${MLIR_PDLL_TABLEGEN_EXE}")
set(MLIR_CONFIG_SRC_SHARDER_TABLEGEN_EXE "${MLIR_SRC_SHARDER_TABLEGEN_EXE}")
+if (MLIR_LINK_MLIR_DYLIB)
+ set(MLIR_CONFIG_LINK_MLIR_DYLIB
+ "set(MLIR_LINK_MLIR_DYLIB ${MLIR_LINK_MLIR_DYLIB})")
----------------
qyingwu wrote:
Thanks, that makes sense. I updated the patch to canonicalize the value instead of following the LLVM pattern.
also tested a small out-of-tree consumer using `find_package(MLIR CONFIG)` and `include(AddMLIR)` against both cases.
https://github.com/llvm/llvm-project/pull/207336
More information about the Mlir-commits
mailing list