[Mlir-commits] [mlir] [MLIR][Build] Adding find_package for pybind (PR #153579)

Maksim Levental llvmlistbot at llvm.org
Thu Aug 14 07:24:41 PDT 2025


makslevental wrote:

don't we have this already here? https://github.com/llvm/llvm-project/blob/56e0bf2958ffdcd74192cc7d8188d62bdbe068d6/mlir/cmake/modules/MLIRDetectPythonEnv.cmake#L50

you're probably having this issue because IREE does `MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES=ON`

https://github.com/iree-org/iree/blob/cc1a7dda09b97dd22a810c35aa039b00379c1c67/build_tools/cmake/iree_llvm.cmake#L181

so just do `MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES=OFF` in your cmake config and it should work.

https://github.com/llvm/llvm-project/pull/153579


More information about the Mlir-commits mailing list