cmake: opt-in to not implicitly expanding variables in if() (policy CMP0054)
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 11 Mar 2015 14:41:24 +0000 (15:41 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 11 Mar 2015 14:42:39 +0000 (15:42 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89450
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/CMakeLists.txt

index 6fbfb40..309cdb2 100644 (file)
@@ -15,6 +15,7 @@ endif(COMMAND cmake_policy)
 if(CMAKE_MAJOR_VERSION GREATER 2)
     cmake_policy(SET CMP0026 NEW)
     cmake_policy(SET CMP0053 NEW)
+    cmake_policy(SET CMP0054 NEW)
 endif()
 
 # detect version