diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 56fa0c8..0df8767 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,4 +1,6 @@ -if(NOT TARGET pybind11) +find_package(pybind11 CONFIG QUIET) + +if(NOT pybind11_FOUND) FetchContent_Declare( pybind11 GIT_REPOSITORY https://github.com/pybind/pybind11.git