mirror of
https://github.com/reactos/CMake.git
synced 2025-02-10 13:53:56 +00:00
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.
This commit is contained in:
parent
44b8937b76
commit
c3e0d1ffe9
@ -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 ####
|
### Common stuff ####
|
||||||
set(PKG_CONFIG_VERSION 1)
|
set(PKG_CONFIG_VERSION 1)
|
||||||
|
|
||||||
@ -770,3 +774,5 @@ Variables Affecting Behavior
|
|||||||
### Local Variables:
|
### Local Variables:
|
||||||
### mode: cmake
|
### mode: cmake
|
||||||
### End:
|
### End:
|
||||||
|
|
||||||
|
cmake_policy(POP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user