1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

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 <min> value or use a ...<max> 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.
This commit is contained in:
Misa 2023-10-31 22:36:11 -07:00
parent b3810b686d
commit 1e5a737089

View file

@ -1,7 +1,7 @@
# CMake File for VVVVVV # CMake File for VVVVVV
# Written by Ethan "flibitijibibo" Lee # Written by Ethan "flibitijibibo" Lee
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12...3.5)
# CMake Options # CMake Options
option(ENABLE_WARNINGS "Enable compilation warnings" ON) option(ENABLE_WARNINGS "Enable compilation warnings" ON)