Commit 4eba179d authored by Timo Koch's avatar Timo Koch
Browse files

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

parent 50ab721c
Pipeline #6313 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