diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e8c2979f0750ffccb22326ce923f8b1638099bd..fca382c01aff9c1f24a3cd32a9f17d8f71990c84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,10 +84,10 @@ endif() # PYTHON BINDING if (PYBIND) - # Handles Python + pybind11 headers dependencies include(PybindModuleCreation) generate_python_binding(${CMAKE_PROJECT_NAME} ${module_name}) + # Handles Python + pybind11 headers dependencies target_link_libraries(${module_name} PUBLIC pybind11::pybind11