Skip to content

Commit

Permalink
bump minimum cmake version to 3.5
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akva2 committed Sep 3, 2023
1 parent ab100c2 commit 30b7a96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Apps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Apps/Common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 30b7a96

Please sign in to comment.