Skip to content

Commit 6840ef7

Browse files
seanmvfonov
authored andcommitted
Increased CMAKE_MINIMUM_REQUIRED from 3.6 to 3.10
Fixes warning "Compatibility with CMake < 3.10 will be removed from a future version of CMake." from CMake 3.31 Also moved it higher to fix "cmake_minimum_required() should be called prior to this top-level project() call" warning.
1 parent f4668fb commit 6840ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Andrew Janke - [email protected]
44
# Vladimir S. FONOV - [email protected]
55

6+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
7+
68
PROJECT(LIBMINC)
79

810
SET(LIBMINC_PACKAGE_VERSION_MAJOR 2)
@@ -22,8 +24,6 @@ INCLUDE(CTest)
2224

2325
ENABLE_TESTING()
2426

25-
CMAKE_MINIMUM_REQUIRED(VERSION 3.6)
26-
2727
IF( POLICY CMP0063 )
2828
CMAKE_POLICY(SET CMP0063 NEW)
2929
ENDIF()

0 commit comments

Comments
 (0)