diff --git a/CMakeLists.txt b/CMakeLists.txt index ba2c37f..bd7f268 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ option(PYBUILD "Build Python modules") # Third tier: Python modules. if(PYBUILD) - add_subdirectory(pybind11) + find_package(pybind11) file(GLOB LAYOUT_SOURCES "src/python/*.cpp") pybind11_add_module(_ext ${LAYOUT_SOURCES})