From 2c4bde6e4ef310c87907983d468445ea1bd055f5 Mon Sep 17 00:00:00 2001 From: jerryyin Date: Thu, 14 Aug 2025 14:00:22 +0000 Subject: Adding find_package for pybind --- mlir/cmake/modules/AddMLIRPython.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake index c14e614ed7d9..4354af8792f3 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} ) -- cgit v1.2.3