diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a527dc6a19d49947a5b3097b4a41e88c5a18df3..3d0974e733a3422eed2a059de4d674a0ca574365 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,16 +79,10 @@ endif() # PYTHON BINDING if (PYBIND) include(PybindModuleCreation) - find_package(Python REQUIRED) - if (${Python_VERSION_MAJOR} LESS 3) - MESSAGE(FATAL_ERROR "Unsupported Python version. Python 3.0.0+ is required") - endif() generate_python_binding(${project} ${module_name}) # Handles Python + pybind11 headers dependencies target_link_libraries(${module_name} - PRIVATE - Python::Python PUBLIC pybind11::pybind11 )