Set cmake policy CMP0054 NEW

meaning in IF("A") cmake will not expand the value of the variable A
This commit is contained in:
Sergei Golubchik 2016-09-04 13:23:03 +02:00
parent 663835f62d
commit 58f20b0c6e

View File

@ -31,6 +31,9 @@ IF(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR
CMAKE_POLICY(SET CMP0045 OLD)
CMAKE_POLICY(SET CMP0042 OLD)
ENDIF()
IF(POLICY CMP0054)
CMAKE_POLICY(SET CMP0054 NEW)
ENDIF()
MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")