summaryrefslogtreecommitdiff
path: root/Modules/GNUInstallDirs.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-10-23 13:36:47 +0200
committerBrad King <brad.king@kitware.com>2017-10-23 09:02:54 -0400
commita8be8b1b54fe1922a1d1fc0365c3ae5c918b6654 (patch)
tree1d3864a06bcc788d54e312ebf43867d58059e189 /Modules/GNUInstallDirs.cmake
parenta91eb5e41f486628910f189bf40403568af013c7 (diff)
downloadcmake-a8be8b1b54fe1922a1d1fc0365c3ae5c918b6654.tar.gz
GNUInstallDirs: Enable CMP0054
Fixes: #17381
Diffstat (limited to 'Modules/GNUInstallDirs.cmake')
-rw-r--r--Modules/GNUInstallDirs.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index 64bd09e686..91361d298a 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -123,6 +123,9 @@
# allow users who create additional path variables to also compute
# absolute paths where necessary, using the same logic.
+cmake_policy(PUSH)
+cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
+
# Convert a cache variable to PATH type
macro(_GNUInstallDirs_cache_convert_to_path var description)
@@ -371,3 +374,5 @@ foreach(dir
)
GNUInstallDirs_get_absolute_install_dir(CMAKE_INSTALL_FULL_${dir} CMAKE_INSTALL_${dir})
endforeach()
+
+cmake_policy(POP)