blob: 7bc4df81f7d53c5d7fd72ada8bf25ef3b90f7398 (
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
26
27
28
29
30
31
32
|
- fix the python version
--- cmake/DetectOptions.cmake.orig 2024-05-29 01:42:27 UTC
+++ cmake/DetectOptions.cmake
@@ -394,15 +394,15 @@ if(ADIOS2_USE_PIP)
endif()
if(ADIOS2_USE_PIP)
- find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development.Module)
+ find_package(Python ${FREEBSD_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development.Module)
set(ADIOS2_HAVE_PIP TRUE)
elseif(ADIOS2_USE_Python STREQUAL AUTO)
- find_package(Python 3.8 COMPONENTS Interpreter Development)
+ find_package(Python ${FREEBSD_PYTHON_VERSION} COMPONENTS Interpreter Development)
if(Python_FOUND AND ADIOS2_HAVE_MPI)
find_package(PythonModule COMPONENTS mpi4py mpi4py/mpi4py.h)
endif()
elseif(ADIOS2_USE_Python)
- find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development)
+ find_package(Python ${FREEBSD_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
if(ADIOS2_HAVE_MPI)
find_package(PythonModule REQUIRED COMPONENTS mpi4py mpi4py/mpi4py.h)
endif()
@@ -419,7 +419,7 @@ if(BUILD_TESTING AND NOT Python_Interpreter_FOUND)
# Even if no python support, we still want the interpreter for tests
if(BUILD_TESTING AND NOT Python_Interpreter_FOUND)
- find_package(Python REQUIRED COMPONENTS Interpreter)
+ find_package(Python ${FREEBSD_PYTHON_VERSION} EXACT REQUIRED COMPONENTS Interpreter)
endif()
if(Python_Interpreter_FOUND)
|