diff options
author | Rolf Eike Beer <eb@emlix.com> | 2020-02-24 15:42:34 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eb@emlix.com> | 2020-02-24 15:42:34 (GMT) |
commit | c3e0d1ffe9bd66642c436bab2db0a0a1a1adf99c (patch) | |
tree | 968c663512c488b4b6a02a16884cd289143a74d3 /Modules/FindPkgConfig.cmake | |
parent | 44b8937b7614560d9e88d25456c8394b4b209d51 (diff) | |
download | CMake-c3e0d1ffe9bd66642c436bab2db0a0a1a1adf99c.zip CMake-c3e0d1ffe9bd66642c436bab2db0a0a1a1adf99c.tar.gz CMake-c3e0d1ffe9bd66642c436bab2db0a0a1a1adf99c.tar.bz2 |
FindPkgConfig: set policies CMP0054 and CMP0057 to new
One may encounter warnings if FindPkgConfig is used in any project, even
indirectly, that has set any of these policies to old explicitely or requires
an older version.
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 5162a44..bd1bc7c 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) |