Order policies by their numbers in CMake policies file
Just make it easier to maintain this file by enabling all policies in order of their numbers. No real changes.
This commit is contained in:
parent
9f91756108
commit
9567adb8cc
@ -7,6 +7,8 @@
|
|||||||
# Licence: wxWindows licence
|
# Licence: wxWindows licence
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
# Please keep the policies in the order of their numbers.
|
||||||
|
|
||||||
if(POLICY CMP0025)
|
if(POLICY CMP0025)
|
||||||
# Compiler id for Apple Clang is now AppleClang
|
# Compiler id for Apple Clang is now AppleClang
|
||||||
cmake_policy(SET CMP0025 NEW)
|
cmake_policy(SET CMP0025 NEW)
|
||||||
@ -17,6 +19,11 @@ if(POLICY CMP0038)
|
|||||||
cmake_policy(SET CMP0038 NEW)
|
cmake_policy(SET CMP0038 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(POLICY CMP0042)
|
||||||
|
# MACOSX_RPATH is enabled by default.
|
||||||
|
cmake_policy(SET CMP0042 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(POLICY CMP0045)
|
if(POLICY CMP0045)
|
||||||
# error on non-existent target in get_target_property
|
# error on non-existent target in get_target_property
|
||||||
cmake_policy(SET CMP0045 NEW)
|
cmake_policy(SET CMP0045 NEW)
|
||||||
@ -41,8 +48,3 @@ if(POLICY CMP0054)
|
|||||||
# only interpret if() arguments as variables or keywords when unquoted
|
# only interpret if() arguments as variables or keywords when unquoted
|
||||||
cmake_policy(SET CMP0054 NEW)
|
cmake_policy(SET CMP0054 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(POLICY CMP0042)
|
|
||||||
# MACOSX_RPATH is enabled by default.
|
|
||||||
cmake_policy(SET CMP0042 NEW)
|
|
||||||
endif()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user