From 1e5a73708993334985835c465b7d5778ac852b70 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 31 Oct 2023 22:36:11 -0700 Subject: [PATCH] CMake: Silence deprecation warning Recent versions of CMake emit the following: CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Reading the documentation further, adding a max refers to the max version compatibility of CMake _policies_. Adding a max of 3.5 makes the warning go away, so it seems that the warning is more about policies than anything else. This will still work on 2.8.12 as the extra dots will be seen as a version component separator, ignoring the max version. --- desktop_version/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index f7fb2c18..7a05e9d4 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -1,7 +1,7 @@ # CMake File for VVVVVV # Written by Ethan "flibitijibibo" Lee -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...3.5) # CMake Options option(ENABLE_WARNINGS "Enable compilation warnings" ON)