Skip to content

Commit 2c4bde6

Browse files
committed
Adding find_package for pybind
1 parent 7bda763 commit 2c4bde6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/cmake/modules/AddMLIRPython.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ function(add_mlir_python_extension libname extname)
661661
# sources that must be compiled in accordance with pybind11 needs (RTTI and
662662
# exceptions).
663663
if(NOT DEFINED ARG_PYTHON_BINDINGS_LIBRARY OR ARG_PYTHON_BINDINGS_LIBRARY STREQUAL "pybind11")
664+
find_package(pybind11 REQUIRED)
664665
pybind11_add_module(${libname}
665666
${ARG_SOURCES}
666667
)

0 commit comments

Comments
 (0)