From 30b7a968d33401ff6f49e532a9e5fb2b516a5368 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Sat, 2 Sep 2023 13:38:35 +0200 Subject: [PATCH] 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 --- Apps/CMakeLists.txt | 4 ++-- Apps/Common/CMakeLists.txt | 4 ++-- CMakeLists.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Apps/CMakeLists.txt b/Apps/CMakeLists.txt index b4d79c3fb..a31211fc8 100644 --- a/Apps/CMakeLists.txt +++ b/Apps/CMakeLists.txt @@ -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) diff --git a/Apps/Common/CMakeLists.txt b/Apps/Common/CMakeLists.txt index 6f7ad3508..904a714d2 100644 --- a/Apps/Common/CMakeLists.txt +++ b/Apps/Common/CMakeLists.txt @@ -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}) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7948427d..71151acdb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)