CMake: simply check for existence of policy CMP0054

This commit is contained in:
Rolf Eike Beer 2018-10-30 13:23:39 +01:00 committed by Rolf Eike Beer
parent 5595fa3ae6
commit 7f7cd81f7c

View File

@ -4,7 +4,7 @@ project(GLFW C)
set(CMAKE_LEGACY_CYGWIN_WIN32 OFF) set(CMAKE_LEGACY_CYGWIN_WIN32 OFF)
if (NOT CMAKE_VERSION VERSION_LESS "3.1") if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW) cmake_policy(SET CMP0054 NEW)
endif() endif()