diff --git a/cmake/ug_cmake_versions.cmake b/cmake/ug_cmake_versions.cmake new file mode 100644 index 000000000..c9ca65157 --- /dev/null +++ b/cmake/ug_cmake_versions.cmake @@ -0,0 +1 @@ +cmake_minimum_required(VERSION 2.8.12...3.27.1) diff --git a/ugbase/bindings/lua/CMakeLists.txt b/ugbase/bindings/lua/CMakeLists.txt index db29e25ae..a331d5ab9 100644 --- a/ugbase/bindings/lua/CMakeLists.txt +++ b/ugbase/bindings/lua/CMakeLists.txt @@ -28,7 +28,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12...3.27.1) +include("../../../cmake/ug_cmake_versions.cmake") #### # uginterface Library diff --git a/ugbase/lib_algebra/CMakeLists.txt b/ugbase/lib_algebra/CMakeLists.txt index 8dec94058..658d7f815 100644 --- a/ugbase/lib_algebra/CMakeLists.txt +++ b/ugbase/lib_algebra/CMakeLists.txt @@ -28,7 +28,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required (VERSION 2.8.12...3.27.1) +include("../../cmake/ug_cmake_versions.cmake") project (P_LIB_ALGEBRA) diff --git a/ugbase/lib_disc/CMakeLists.txt b/ugbase/lib_disc/CMakeLists.txt index 656bacecd..f5a4b98f1 100644 --- a/ugbase/lib_disc/CMakeLists.txt +++ b/ugbase/lib_disc/CMakeLists.txt @@ -28,7 +28,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12...3.27.1) +include("../../cmake/ug_cmake_versions.cmake") project(P_LIB_DISCRETIZATION)