diff --git a/CMakeLists.txt b/CMakeLists.txt index a42d77976..b790af575 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/pybind/pybind11.git GIT_TAG v2.11.1 ) +set(PYBIND11_FINDPYTHON ON) FetchContent_MakeAvailable(pybind11-src) endif()