2016-09-25 16:19:39 -04:00
|
|
|
#############################################################################
|
|
|
|
# Name: CMakeLists.txt
|
|
|
|
# Purpose: CMake policies for wxWidgets
|
|
|
|
# Author: Tobias Taschner
|
|
|
|
# Created: 2016-10-21
|
|
|
|
# Copyright: (c) 2016 wxWidgets development team
|
|
|
|
# Licence: wxWindows licence
|
|
|
|
#############################################################################
|
|
|
|
|
2018-01-24 10:24:28 -05:00
|
|
|
# Please keep the policies in the order of their numbers.
|
|
|
|
|
2016-09-25 16:19:39 -04:00
|
|
|
if(POLICY CMP0025)
|
2018-01-24 10:23:45 -05:00
|
|
|
# Compiler id for Apple Clang is now AppleClang
|
|
|
|
cmake_policy(SET CMP0025 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(POLICY CMP0038)
|
2018-01-24 10:23:45 -05:00
|
|
|
# targets may not link directly to themselves
|
|
|
|
cmake_policy(SET CMP0038 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
2018-01-24 10:24:28 -05:00
|
|
|
if(POLICY CMP0042)
|
|
|
|
# MACOSX_RPATH is enabled by default.
|
|
|
|
cmake_policy(SET CMP0042 NEW)
|
|
|
|
endif()
|
|
|
|
|
2016-09-25 16:19:39 -04:00
|
|
|
if(POLICY CMP0045)
|
2018-01-24 10:23:45 -05:00
|
|
|
# error on non-existent target in get_target_property
|
|
|
|
cmake_policy(SET CMP0045 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(POLICY CMP0046)
|
2018-01-24 10:23:45 -05:00
|
|
|
# error on non-existent dependency in add_dependencies
|
|
|
|
cmake_policy(SET CMP0046 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(POLICY CMP0049)
|
2018-01-24 10:23:45 -05:00
|
|
|
# do not expand variables in target source entries
|
|
|
|
cmake_policy(SET CMP0049 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(POLICY CMP0053)
|
2018-01-24 10:23:45 -05:00
|
|
|
# simplify variable reference and escape sequence evaluation
|
|
|
|
cmake_policy(SET CMP0053 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(POLICY CMP0054)
|
2018-01-24 10:23:45 -05:00
|
|
|
# only interpret if() arguments as variables or keywords when unquoted
|
|
|
|
cmake_policy(SET CMP0054 NEW)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|