diff options
-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} ) |