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
|
||||
#############################################################################
|
||||
|
||||
# Please keep the policies in the order of their numbers.
|
||||
|
||||
if(POLICY CMP0025)
|
||||
# Compiler id for Apple Clang is now AppleClang
|
||||
cmake_policy(SET CMP0025 NEW)
|
||||
@ -17,6 +19,11 @@ if(POLICY CMP0038)
|
||||
cmake_policy(SET CMP0038 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0042)
|
||||
# MACOSX_RPATH is enabled by default.
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0045)
|
||||
# error on non-existent target in get_target_property
|
||||
cmake_policy(SET CMP0045 NEW)
|
||||
@ -41,8 +48,3 @@ if(POLICY CMP0054)
|
||||
# only interpret if() arguments as variables or keywords when unquoted
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0042)
|
||||
# MACOSX_RPATH is enabled by default.
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user