aboutsummaryrefslogtreecommitdiffstats
path: root/science/siconos/files/patch-cmake_SiconosSetup.cmake
blob: 5df140524dc301c1b9dbfb0fe9303b5abce1c1e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- fix the python version to be same as in the port

--- cmake/SiconosSetup.cmake.orig	2024-08-02 04:37:45 UTC
+++ cmake/SiconosSetup.cmake
@@ -21,7 +21,7 @@ include_directories($<BUILD_INTERFACE:${CMAKE_BINARY_D
 
 # Add extra logs about git references(branch name, commit number...)
 # Useful for documentation and continuous integration
-find_package(Git)
+#find_package(Git)
 if(Git_FOUND)
   execute_process(COMMAND
     ${GIT_EXECUTABLE} -C ${CMAKE_SOURCE_DIR} rev-parse
@@ -61,9 +61,9 @@ endif()
 #  --> look for python framework when all other possibilities failed.
 set(Python_FIND_FRAMEWORK LAST)
 if(WITH_PYTHON_WRAPPER)
-  find_package(Python COMPONENTS Development Interpreter NumPy REQUIRED)
+  find_package(Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Development Interpreter NumPy REQUIRED)
 else()
-  find_package(Python COMPONENTS Interpreter REQUIRED)
+  find_package(Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter REQUIRED)
 endif()
 # For backward compat ...
 set(PYTHON_EXECUTABLE ${Python_EXECUTABLE})