Commit 9a0f6eff authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/python-dune-version' into 'master'

[python] Require dune-common>=2.8 to enable Python bindings

See merge request !2728

(cherry picked from commit 47d743f7)

4eba179d [python] Require dune-common>=2.8 to enable Python bindings
parent 5f4a5182
Pipeline #6405 passed with stages
......@@ -35,8 +35,10 @@ add_subdirectory(examples EXCLUDE_FROM_ALL)
# if Python bindings are enabled, include necessary sub directories.
if(DUNE_ENABLE_PYTHONBINDINGS)
add_subdirectory(python)
dune_python_install_package(PATH "python")
if(${dune-common_VERSION} VERSION_GREATER_EQUAL 2.8)
add_subdirectory(python)
dune_python_install_package(PATH "python")
endif()
endif()
# finalize the dune project, e.g. generating config.h etc.
......
......@@ -15,5 +15,7 @@ add_subdirectory(timestepping)
# if Python bindings are enabled, include Python binding tests
if(DUNE_ENABLE_PYTHONBINDINGS)
add_subdirectory(python)
if(${dune-common_VERSION} VERSION_GREATER_EQUAL 2.8)
add_subdirectory(python)
endif()
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment