Browse Source

Update minimum cmake version

Not necessarily needed yet, but given our target platforms, this seems
like a sane minimum version. Also means we don't need the separate
policy settings, since the new minimum version already enables the new
behaviour.
Bart van Strien 1 year ago
parent
commit
cd5fc414a1
1 changed files with 1 additions and 9 deletions
  1. 1 9
      CMakeLists.txt

+ 1 - 9
CMakeLists.txt

@@ -23,7 +23,7 @@ if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
 	message(FATAL_ERROR "Prevented in-tree build.")
 	message(FATAL_ERROR "Prevented in-tree build.")
 endif()
 endif()
 
 
-cmake_minimum_required(VERSION 3.7)
+cmake_minimum_required(VERSION 3.18)
 
 
 project(love)
 project(love)
 
 
@@ -79,14 +79,6 @@ endif()
 
 
 message(STATUS "Target platform: ${LOVE_TARGET_PLATFORM}")
 message(STATUS "Target platform: ${LOVE_TARGET_PLATFORM}")
 
 
-if(POLICY CMP0072)
-	cmake_policy(SET CMP0072 NEW)
-endif()
-
-if(POLICY CMP0063)
-	cmake_policy(SET CMP0063 NEW)
-endif()
-
 if(MEGA)
 if(MEGA)
 	# LOVE_MSVC_DLLS contains runtime DLLs that should be bundled with the love
 	# LOVE_MSVC_DLLS contains runtime DLLs that should be bundled with the love
 	# binary (in e.g. the installer). Example: msvcp140.dll.
 	# binary (in e.g. the installer). Example: msvcp140.dll.