summaryrefslogtreecommitdiff
path: root/math/py-heyoka/files/patch-CMakeLists.txt
blob: 06441196fc2e94428cdc22e44a06d5a55c0ed4b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- CMakeLists.txt.orig	2022-12-18 12:54:30 UTC
+++ CMakeLists.txt
@@ -140,14 +140,14 @@ set(_HEYOKA_PY_PYTHON3_COMPONENTS Interpreter NumPy De
 # and Python3 is *not* found, we try again, this time with the full Development
 # component (rather than only Development.Module). This seems to work around the
 # issue, for now at least.
-find_package(Python3 QUIET COMPONENTS ${_HEYOKA_PY_PYTHON3_COMPONENTS})
+find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} QUIET COMPONENTS ${_HEYOKA_PY_PYTHON3_COMPONENTS})
 
 if(NOT Python3_FOUND)
     list(POP_BACK _HEYOKA_PY_PYTHON3_COMPONENTS)
     list(APPEND _HEYOKA_PY_PYTHON3_COMPONENTS Development)
 endif()
 
-find_package(Python3 QUIET REQUIRED COMPONENTS ${_HEYOKA_PY_PYTHON3_COMPONENTS})
+find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} QUIET REQUIRED COMPONENTS ${_HEYOKA_PY_PYTHON3_COMPONENTS})
 
 message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
 message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")