Browse Source

Set cmake policy CMP0054 NEW

meaning in IF("A") cmake will not expand the value of the variable A
pull/223/merge
Sergei Golubchik 9 years ago
parent
commit
58f20b0c6e
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -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}")

Loading…
Cancel
Save