summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-03-11 15:41:24 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-11 15:42:39 +0100
commit72f246f87d1df7682796f44a111768051b5573d8 (patch)
treee74abf97c6158d1890471e51d3823e1ba13498e4 /cmake
parentf756aead906334407e44f12c4ab52c75aa3d302b (diff)
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 <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 6fbfb40d..309cdb2e 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