ports/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
Yuri Victorovich a878e29380 math/py-nlopt: update 2.8.0 → 2.9.0
Reported by:	portscout
2024-11-17 10:10:28 -08: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)