blob: f52fe2fdec048b784482a2925cf35c4bdc599f25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
- Fix the python version to one used by the port.
--- CMakeLists.txt.orig 2023-04-09 15:01:42 UTC
+++ CMakeLists.txt
@@ -137,7 +137,7 @@ if(${pagmo_VERSION} VERSION_LESS ${_PYGMO_MIN_PAGMO_VE
endif()
# python.
-find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
+find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development.Module)
message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")
set(PYGMO_INSTALL_PATH "" CACHE STRING "pygmo module installation path")
|