mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
Remove SYSTEM argument for cmake >= 3.12
Remove SYSTEM argument for pybind11_add_module() if cmake version is greater than 3.12. It appears that this argument has been deprecated and also removed by the new FindPython mode in the cmake tools for pybind11.
This commit is contained in:
parent
101a5ada82
commit
063e336ec6
|
@ -5,8 +5,10 @@ if(NOT pybind11_FOUND)
|
|||
# SYSTEM is supported for embedded pybind source (>= 2.3.0)
|
||||
set(PYBIND11_SYSTEM "SYSTEM")
|
||||
elseif(pybind11_VERSION VERSION_GREATER_EQUAL "2.3.0")
|
||||
# SYSTEM is only support for pybind >= 2.3.0 (Unfortunately querying the
|
||||
# version does not work. AT least we know the embedded one.
|
||||
set(PYBIND11_SYSTEM "SYSTEM")
|
||||
if(CMAKE_VERSION VERSION_LESS 3.12)
|
||||
# SYSTEM is only support for pybind >= 2.3.0 and cmake <= 3.12.0 (Unfortunately querying the
|
||||
# version does not work. AT least we know the embedded one.
|
||||
set(PYBIND11_SYSTEM "SYSTEM")
|
||||
endif()
|
||||
endif()
|
||||
add_subdirectory( simulators )
|
||||
|
|
Loading…
Reference in New Issue
Block a user