diff --git a/CMakeLists.txt b/CMakeLists.txt index e8172b7f0302d6794c9ab510d6d3f487d4e0fc26..dec2c1b9ab2c3466d809c1c40a86331943ad7bdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,8 +26,8 @@ add_subdirectory("cmake/modules") add_subdirectory("cmake/scripts") # if Python bindings are enabled, include necessary sub directories. -if( DUNE_ENABLE_PYTHONBINDINGS ) - add_subdirectory("python") +if(DUNE_ENABLE_PYTHONBINDINGS) + add_subdirectory(python) dune_python_install_package(PATH "python") endif() diff --git a/dune/CMakeLists.txt b/dune/CMakeLists.txt index 2a0c96a2dca2e7d2c1bbe5e79689fa4d860eca53..c1a0f14125fde046f3201b188762e75ce3dbbbc8 100644 --- a/dune/CMakeLists.txt +++ b/dune/CMakeLists.txt @@ -1,6 +1,6 @@ add_subdirectory("common") # if Python bindings are enabled, include necessary sub directories. -if( DUNE_ENABLE_PYTHONBINDINGS ) - add_subdirectory("python") +if(DUNE_ENABLE_PYTHONBINDINGS) + add_subdirectory(python) endif() diff --git a/dune/common/parallel/CMakeLists.txt b/dune/common/parallel/CMakeLists.txt index 6ca379e2ba3e115b2689c6e4c5fbb686bcfe9381..1244770ac7841276022ec273385c14637a6977e3 100644 --- a/dune/common/parallel/CMakeLists.txt +++ b/dune/common/parallel/CMakeLists.txt @@ -24,4 +24,3 @@ install(FILES selection.hh variablesizecommunicator.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/common/parallel) - diff --git a/python/dune/common/project.py b/python/dune/common/project.py index 67ea186d9a4d91fcefaba3cb8fde063dbf200136..1d5cd8868edb54084e3d2a07361bbb1e08e80026 100644 --- a/python/dune/common/project.py +++ b/python/dune/common/project.py @@ -65,7 +65,7 @@ def make_project(dir, description, subdirs=None, enable_all_packages=True, is_du with open(os.path.join(dir, 'dune.module'), 'w') as file: file.write(repr(description)) - cmake_content = ['cmake_minimum_required(VERSION 3.1)', 'project(' + description.name + ' C CXX)'] + cmake_content = ['cmake_minimum_required(VERSION 3.13)', 'project(' + description.name + ' C CXX)'] if is_dunepy: cmake_content += ['', 'set(DUNE_ENABLE_PYTHONBINDINGS ON)'] cmake_content += ['',