opnsense-ports/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
Franco Fichtner 6d031d4c91 */*: sync with upstream
Taken from: FreeBSD
2024-11-19 10:01:34 +01:00

14 lines
610 B
Text

--- extern/nlopt/CMakeLists.txt.orig 2024-11-14 05:30:22 UTC
+++ extern/nlopt/CMakeLists.txt
@@ -324,9 +324,9 @@ if (NLOPT_PYTHON)
if (NLOPT_PYTHON)
if (CMAKE_VERSION VERSION_LESS 3.26)
- find_package (Python 3.6 COMPONENTS Interpreter Development)
+ find_package (Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development)
else ()
- find_package (Python 3.6 COMPONENTS Interpreter Development.Module Development.SABIModule)
+ find_package (Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development.Module Development.SABIModule)
endif ()
if (Python_FOUND)