Skip to content

Commit 30b7a96

Browse files
committed
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
1 parent ab100c2 commit 30b7a96

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Apps/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
project(IFEM_Apps)
2-
31
cmake_minimum_required(VERSION 3.5)
42

3+
project(IFEM_Apps)
4+
55
# Add local modules
66
set(IFEM_PATH ${PROJECT_SOURCE_DIR}/..)
77
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${IFEM_PATH}/cmake/Modules)

Apps/Common/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
project(IFEMAppCommon)
1+
cmake_minimum_required(VERSION 3.5)
22

3-
cmake_minimum_required(VERSION 3.0)
3+
project(IFEMAppCommon)
44

55
include_directories(${PROJECT_SOURCE_DIR})
66

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
project(IFEM)
1+
cmake_minimum_required(VERSION 3.5)
22

3-
cmake_minimum_required(VERSION 3.0)
3+
project(IFEM)
44

55
set(IFEM_VERSION_MAJOR 0)
66
set(IFEM_VERSION_MINOR 9)

0 commit comments

Comments
 (0)