From d76a20d0f4af6b129332562c21a5a1e6d8d0ec74 Mon Sep 17 00:00:00 2001 From: Dmitriy Logashenko Date: Tue, 1 Aug 2023 13:11:12 +0300 Subject: [PATCH] Fixing the CMake version messages (that 3.5 and below will be unsupported in the future). 1. In some subordinated files, the version checking command is removed. 2. In the other CMakeLists.txt, the upper tested version is specified to 3.27.1. --- CMakeLists.txt | 2 +- ugbase/CMakeLists.txt | 2 +- ugbase/bindings/lua/CMakeLists.txt | 2 +- ugbase/bridge/CMakeLists.txt | 2 -- ugbase/common/CMakeLists.txt | 2 +- ugbase/common/node_tree/CMakeLists.txt | 2 -- ugbase/compile_info/CMakeLists.txt | 2 -- ugbase/lib_algebra/CMakeLists.txt | 2 +- ugbase/lib_disc/CMakeLists.txt | 2 +- ugbase/lib_grid/CMakeLists.txt | 2 +- ugbase/pcl/CMakeLists.txt | 2 +- ugbase/registry/CMakeLists.txt | 2 -- ugbase/ug_shell/CMakeLists.txt | 2 +- 13 files changed, 9 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 043305a7e..cd2acc0f3 100644 --- a/CMakeLists.txt +++ b/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) +cmake_minimum_required(VERSION 2.8.12...3.27.1) ################################################ # ug4 diff --git a/ugbase/CMakeLists.txt b/ugbase/CMakeLists.txt index 1dc341d72..670f92c62 100644 --- a/ugbase/CMakeLists.txt +++ b/ugbase/CMakeLists.txt @@ -32,7 +32,7 @@ # ugbase ################################################ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...3.27.1) project(P_UGBASE) diff --git a/ugbase/bindings/lua/CMakeLists.txt b/ugbase/bindings/lua/CMakeLists.txt index 600c2337c..db29e25ae 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) +cmake_minimum_required(VERSION 2.8.12...3.27.1) #### # uginterface Library diff --git a/ugbase/bridge/CMakeLists.txt b/ugbase/bridge/CMakeLists.txt index bb817ffd9..752f61c85 100644 --- a/ugbase/bridge/CMakeLists.txt +++ b/ugbase/bridge/CMakeLists.txt @@ -28,8 +28,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12) - #### # ug_bridge Library #### diff --git a/ugbase/common/CMakeLists.txt b/ugbase/common/CMakeLists.txt index e09c0bd77..9713dcde9 100644 --- a/ugbase/common/CMakeLists.txt +++ b/ugbase/common/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) +cmake_minimum_required(VERSION 2.8.12...3.27.1) ################################################ # common diff --git a/ugbase/common/node_tree/CMakeLists.txt b/ugbase/common/node_tree/CMakeLists.txt index 1a1debf46..43ab0dc83 100644 --- a/ugbase/common/node_tree/CMakeLists.txt +++ b/ugbase/common/node_tree/CMakeLists.txt @@ -28,8 +28,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12) - ################################################ # node-tree ################################################ diff --git a/ugbase/compile_info/CMakeLists.txt b/ugbase/compile_info/CMakeLists.txt index f77fa00bf..2f05aca34 100644 --- a/ugbase/compile_info/CMakeLists.txt +++ b/ugbase/compile_info/CMakeLists.txt @@ -28,8 +28,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12) - ################################################ # ug4 - compile-info ################################################ diff --git a/ugbase/lib_algebra/CMakeLists.txt b/ugbase/lib_algebra/CMakeLists.txt index 8bab5ae58..8dec94058 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) +cmake_minimum_required (VERSION 2.8.12...3.27.1) project (P_LIB_ALGEBRA) diff --git a/ugbase/lib_disc/CMakeLists.txt b/ugbase/lib_disc/CMakeLists.txt index de8fce379..656bacecd 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) +cmake_minimum_required(VERSION 2.8.12...3.27.1) project(P_LIB_DISCRETIZATION) diff --git a/ugbase/lib_grid/CMakeLists.txt b/ugbase/lib_grid/CMakeLists.txt index 78eee3f3e..a846e329d 100644 --- a/ugbase/lib_grid/CMakeLists.txt +++ b/ugbase/lib_grid/CMakeLists.txt @@ -32,7 +32,7 @@ # lib_grid ################################################ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...3.27.1) project(P_LIB_GRID) diff --git a/ugbase/pcl/CMakeLists.txt b/ugbase/pcl/CMakeLists.txt index e88813849..b55083e41 100644 --- a/ugbase/pcl/CMakeLists.txt +++ b/ugbase/pcl/CMakeLists.txt @@ -32,7 +32,7 @@ # Parallel Communication Layer ################################################ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...3.27.1) project(P_PCL) diff --git a/ugbase/registry/CMakeLists.txt b/ugbase/registry/CMakeLists.txt index 87869fbde..b235123fd 100644 --- a/ugbase/registry/CMakeLists.txt +++ b/ugbase/registry/CMakeLists.txt @@ -28,8 +28,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. -cmake_minimum_required(VERSION 2.8.12) - #### # registry Library #### diff --git a/ugbase/ug_shell/CMakeLists.txt b/ugbase/ug_shell/CMakeLists.txt index f7ec7d19e..abb4857f5 100644 --- a/ugbase/ug_shell/CMakeLists.txt +++ b/ugbase/ug_shell/CMakeLists.txt @@ -58,7 +58,7 @@ ################################################################################ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...3.27.1) #### # ugscript Library