summaryrefslogtreecommitdiff
path: root/science/nest/files/patch-cmake_ProcessOptions.cmake
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-01-27 12:15:50 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2022-01-27 12:27:58 -0800
commit96fe8f7ab1ef31c13cf71d79b6f8d15466544c9a (patch)
treeb7f0b3e6bc05d227242589946663356df95aa478 /science/nest/files/patch-cmake_ProcessOptions.cmake
parentnet/frp: Update 0.38.0 -> 0.39.0 (diff)
science/nest: Update 3.1 -> 3.2
Reported by: portscout
Diffstat (limited to 'science/nest/files/patch-cmake_ProcessOptions.cmake')
-rw-r--r--science/nest/files/patch-cmake_ProcessOptions.cmake25
1 files changed, 23 insertions, 2 deletions
diff --git a/science/nest/files/patch-cmake_ProcessOptions.cmake b/science/nest/files/patch-cmake_ProcessOptions.cmake
index 979ff8fc6835..1282cb5c2b40 100644
--- a/science/nest/files/patch-cmake_ProcessOptions.cmake
+++ b/science/nest/files/patch-cmake_ProcessOptions.cmake
@@ -1,6 +1,27 @@
---- cmake/ProcessOptions.cmake.orig 2021-10-21 05:42:49 UTC
+--- cmake/ProcessOptions.cmake.orig 2022-01-21 18:01:36 UTC
+++ cmake/ProcessOptions.cmake
-@@ -421,7 +421,7 @@ function( NEST_PROCESS_WITH_PYTHON )
+@@ -392,9 +392,9 @@ function( NEST_PROCESS_WITH_PYTHON )
+ elseif ( ${with-python} STREQUAL "ON" )
+
+ # Localize the Python interpreter and ABI
+- find_package( Python 3.8 QUIET COMPONENTS Interpreter Development.Module )
++ find_package( Python ${FREEBSD_PYTHON_VER} EXACT QUIET COMPONENTS Interpreter Development.Module )
+ if ( NOT Python_FOUND )
+- find_package( Python 3.8 REQUIRED Interpreter Development )
++ find_package( Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED Interpreter Development )
+ string( CONCAT PYABI_WARN "Could not locate Python ABI"
+ ", using shared libraries and header file instead."
+ " Please clear your CMake cache and build folder and verify that CMake"
+@@ -402,7 +402,7 @@ function( NEST_PROCESS_WITH_PYTHON )
+ )
+ message( WARNING "${PYABI_WARN}")
+ else()
+- find_package( Python 3.8 REQUIRED Interpreter Development.Module )
++ find_package( Python ${FREEBSD_PYTHON_VER} EXACT REQUIRED Interpreter Development.Module )
+ endif()
+
+ if ( Python_FOUND )
+@@ -432,7 +432,7 @@ function( NEST_PROCESS_WITH_PYTHON )
set( Python_INCLUDE_DIRS "${Python_INCLUDE_DIRS}" PARENT_SCOPE )
set( Python_LIBRARIES "${Python_LIBRARIES}" PARENT_SCOPE )