--- 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)