Use policy check instead of CMake version check

This commit is contained in:
Victor Zverovich 2015-02-12 11:27:55 -08:00
parent e392eea160
commit 3822241d99

View File

@ -1,4 +1,4 @@
if (CMAKE_MAJOR_VERSION GREATER 2 AND CMAKE_MINOR_VERSION GREATER 0) if (POLICY CMP0054)
# Only interpret `if` arguments as variables or keywords when unquoted. # Only interpret `if` arguments as variables or keywords when unquoted.
cmake_policy(SET CMP0054 NEW) cmake_policy(SET CMP0054 NEW)
endif () endif ()