From 136368cca0b60af955a7a061b30a2a653687c3e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Tue, 7 May 2024 16:26:39 +0200
Subject: [PATCH] fix : python linking

---
 CMakeLists.txt | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a527dc6a..3d0974e73 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
     )
-- 
GitLab