diff --git a/build/cmake/policies.cmake b/build/cmake/policies.cmake index 668988c7c5..843b593aef 100644 --- a/build/cmake/policies.cmake +++ b/build/cmake/policies.cmake @@ -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()