diff options
author | jerryyin <zhuoryin@amd.com> | 2025-08-14 14:00:22 +0000 |
---|---|---|
committer | jerryyin <zhuoryin@amd.com> | 2025-08-14 14:00:22 +0000 |
commit | 2c4bde6e4ef310c87907983d468445ea1bd055f5 (patch) | |
tree | a28cc99a98c4dcb402d8001b814f0bed4cc9422d | |
parent | 7bda76367f19cfc19086f68d9dd5ac019a9ceccd (diff) | |
download | llvm-users/zyin/fix-pybind11-findpackage.zip llvm-users/zyin/fix-pybind11-findpackage.tar.gz llvm-users/zyin/fix-pybind11-findpackage.tar.bz2 |
Adding find_package for pybindusers/zyin/fix-pybind11-findpackage
-rw-r--r-- | mlir/cmake/modules/AddMLIRPython.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake index c14e614..4354af8 100644 --- a/mlir/cmake/modules/AddMLIRPython.cmake +++ b/mlir/cmake/modules/AddMLIRPython.cmake @@ -661,6 +661,7 @@ function(add_mlir_python_extension libname extname) # sources that must be compiled in accordance with pybind11 needs (RTTI and # exceptions). if(NOT DEFINED ARG_PYTHON_BINDINGS_LIBRARY OR ARG_PYTHON_BINDINGS_LIBRARY STREQUAL "pybind11") + find_package(pybind11 REQUIRED) pybind11_add_module(${libname} ${ARG_SOURCES} ) |