summaryrefslogtreecommitdiff
path: root/Modules/FindPkgConfig.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-25 13:55:42 +0000
committerKitware Robot <kwrobot@kitware.com>2020-02-25 08:55:50 -0500
commit2b615e6f5ed3957ce38cd223dbfccbb721e6b20e (patch)
treee22ec222ee79d7cdf414ac7e67d689106e03ef84 /Modules/FindPkgConfig.cmake
parent078b902dfbec293b8049ed6e65121db0e065f634 (diff)
parentc3e0d1ffe9bd66642c436bab2db0a0a1a1adf99c (diff)
downloadcmake-2b615e6f5ed3957ce38cd223dbfccbb721e6b20e.tar.gz
Merge topic 'FindPkgConfig-scope'
c3e0d1ffe9 FindPkgConfig: set policies CMP0054 and CMP0057 to new Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4388
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r--Modules/FindPkgConfig.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index f4b6ea121c..c79f20fed8 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -20,6 +20,10 @@ following variables will also be set:
#]========================================]
+cmake_policy(PUSH)
+cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
+cmake_policy(SET CMP0057 NEW) # if IN_LIST
+
### Common stuff ####
set(PKG_CONFIG_VERSION 1)
@@ -770,3 +774,5 @@ Variables Affecting Behavior
### Local Variables:
### mode: cmake
### End:
+
+cmake_policy(POP)