[Mlir-commits] [mlir] [mlir][cmake] Export MLIR_LINK_MLIR_DYLIB in MLIRConfig.cmake (PR #207336)
Maksim Levental
llvmlistbot at llvm.org
Wed Jul 8 20:15:44 PDT 2026
================
@@ -59,6 +59,10 @@ set(MLIR_CONFIG_INCLUDE_DIRS
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}")
+set(MLIR_CONFIG_LINK_MLIR_DYLIB "${MLIR_LINK_MLIR_DYLIB}")
----------------
makslevental wrote:
You want
```suggestion
set(MLIR_CONFIG_LINK_MLIR_DYLIB ${MLIR_LINK_MLIR_DYLIB})
```
otherwise you might get something like `MLIR_CONFIG_LINK_MLIR_DYLIB="OFF"` which is truthy in CMake. With no quotes this will be either `ON/`OFF`/`""` (where the last is falsey).
https://github.com/llvm/llvm-project/pull/207336
More information about the Mlir-commits
mailing list