From cd5fc414a1514914ad0cc7c3210c87d78c6243df Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sat, 17 Feb 2024 11:45:31 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cde5ff054..277789ceb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) message(FATAL_ERROR "Prevented in-tree build.") endif() -cmake_minimum_required(VERSION 3.7) +cmake_minimum_required(VERSION 3.18) project(love) @@ -79,14 +79,6 @@ endif() 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) # LOVE_MSVC_DLLS contains runtime DLLs that should be bundled with the love # binary (in e.g. the installer). Example: msvcp140.dll.