summaryrefslogtreecommitdiff
path: root/science/py-pygmo2/files/patch-CMakeLists.txt
blob: b3cf3308cc405db3e5ef170f43f5927f2e90ac6f (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	2021-08-05 03:52:20 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)
+find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development)
 message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
 message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")
 set(PYGMO_INSTALL_PATH "" CACHE STRING "pygmo module installation path")