Skip to content

Commit

Permalink
Increased CMAKE_MINIMUM_REQUIRED from 3.6 to 3.10
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seanm authored and vfonov committed Nov 21, 2024
1 parent f4668fb commit 6840ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Andrew Janke - a.janke@gmail.com
# Vladimir S. FONOV - vladimir.fonov@gmail.com

CMAKE_MINIMUM_REQUIRED(VERSION 3.10)

PROJECT(LIBMINC)

SET(LIBMINC_PACKAGE_VERSION_MAJOR 2)
Expand All @@ -22,8 +24,6 @@ INCLUDE(CTest)

ENABLE_TESTING()

CMAKE_MINIMUM_REQUIRED(VERSION 3.6)

IF( POLICY CMP0063 )
CMAKE_POLICY(SET CMP0063 NEW)
ENDIF()
Expand Down

0 comments on commit 6840ef7

Please sign in to comment.