From: Ralf Habacker Date: Wed, 11 Mar 2015 14:41:24 +0000 (+0100) Subject: cmake: opt-in to not implicitly expanding variables in if() (policy CMP0054) X-Git-Tag: dbus-1.10.6~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72f246f87d1df7682796f44a111768051b5573d8;p=platform%2Fupstream%2Fdbus.git cmake: opt-in to not implicitly expanding variables in if() (policy CMP0054) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89450 Reviewed-by: Simon McVittie --- diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6fbfb40..309cdb2 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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