bump minimum cmake version to 3.5

and put the cmake_minimum_required before project.
current cmake has removed support for < 3.5 and
tosses a warning if the project statement comes
before the cmake_minimum_required statement
This commit is contained in:
Arne Morten Kvarving 2023-09-02 13:38:35 +02:00
parent ab100c290d
commit 30b7a968d3
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
project(IFEM_Apps)
cmake_minimum_required(VERSION 3.5)
project(IFEM_Apps)
# Add local modules
set(IFEM_PATH ${PROJECT_SOURCE_DIR}/..)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${IFEM_PATH}/cmake/Modules)

View File

@ -1,6 +1,6 @@
project(IFEMAppCommon)
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.0)
project(IFEMAppCommon)
include_directories(${PROJECT_SOURCE_DIR})

View File

@ -1,6 +1,6 @@
project(IFEM)
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.0)
project(IFEM)
set(IFEM_VERSION_MAJOR 0)
set(IFEM_VERSION_MINOR 9)