mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user