CMake: Update/Remove old minimum version check

- Update the minimum required CMake version to 3.15 for Fwk folders
  that might be used as top level projects.
- Remove the minimum required CMake version from projects that is just
  included from other top level projects.

Since version 3.19 CMake has been warning that CMake versions below 3.5
is deprecated and support will be removed in the future. This will
silence those warning.

By removing the minimum required version check from projects that is not
intended as top level projects we avoid redundant checks and simplifies
future maintenance.

Closes #10957
This commit is contained in:
Eirik Marthinsen 2023-12-14 14:20:15 +01:00 committed by Magne Sjaastad
parent 958587e76c
commit 9701866736
25 changed files with 3 additions and 47 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.15)
project(CeeApp)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(cafHexInterpolator_UnitTests)
if(MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
find_package(Qt5 CONFIG COMPONENTS Core)
if(Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(cafHexGridIntersectionTools_UnitTests)
if(MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.15)
project(VizFramework)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibFreeType)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibIo)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibRegGrid2D)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibStructGrid)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibUtilities)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(QtMinimal)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(QtMultiView)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(QtSnippetRunner)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.15)
# Builds all the unit tests

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibCore_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibGeometry_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.12)
project(LibGuiQt_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibIo_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibRegGrid2D_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibRender_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibStructGrid_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibUtilities_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(LibViewing_UnitTests)
# Compile flags should already be setup by caller

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(SnippetsBasis)

View File

@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8)
project(freetype)