mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
fixed: conditionally use Development.XXX in python find module
the split into Development.Module and Development.Embed was is introduced in cmake 3.18
This commit is contained in:
parent
d07d0c4453
commit
6934b53877
|
@ -52,7 +52,11 @@ if (OPM_ENABLE_PYTHON)
|
|||
if(PYTHON_EXECUTABLE AND NOT Python3_EXECUTABLE)
|
||||
set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
|
||||
endif()
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
|
||||
if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
|
||||
else()
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
|
||||
endif()
|
||||
endif()
|
||||
if(Python3_VERSION_MINOR LESS 3)
|
||||
# Python native namespace packages requires python >= 3.3
|
||||
|
|
Loading…
Reference in New Issue
Block a user