Simplify check for CMake policy CMP0054

Related to #1367.
This commit is contained in:
Rolf Eike Beer 2018-10-30 13:23:39 +01:00 committed by Camilla Löwy
parent bb2ca1da13
commit df7f36a316

View File

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