1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
# (C) Copyright 1996-2016 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
##############################################################################
#
# ecBuild Policies
# ================
#
# NOTE: This file needs to be included with NO_POLICY_SCOPE or it will have no
# effect!
# NOTE: Policies 1 through 17 will be set to NEW by requiring CMake 2.8.4 i.e.
# calling cmake_minimum_required( VERSION 2.8.4 FATAL_ERROR )
#
##############################################################################
# allow for empty spaces around library names
if( POLICY CMP0004 )
cmake_policy( SET CMP0004 OLD )
endif()
# Allow use of the LOCATION target property.
if( POLICY CMP0026 )
cmake_policy( SET CMP0026 OLD )
endif()
# for macosx use @rpath in a target’s install name
if( POLICY CMP0042 )
cmake_policy( SET CMP0042 NEW )
set( CMAKE_MACOSX_RPATH ON )
endif()
# Error on non-existent target in get_target_property
if( POLICY CMP0045 )
cmake_policy( SET CMP0045 NEW )
endif()
# Error on non-existent dependency in add_dependencies
if( POLICY CMP0046 )
cmake_policy( SET CMP0046 NEW )
endif()
# Do not manage VERSION variables in project command
if( POLICY CMP0048 )
cmake_policy( SET CMP0048 OLD )
endif()
# Disallow add_custom_command SOURCE signatures
if( POLICY CMP0050 )
cmake_policy( SET CMP0050 NEW )
endif()
# Reject source and build dirs in installed INTERFACE_INCLUDE_DIRECTORIES
if( POLICY CMP0052 )
cmake_policy( SET CMP0052 NEW )
endif()
# inside if() don't dereference variables if they are quoted
# e.g. "VAR" is not dereferenced
# "${VAR}" is dereference only once
if( POLICY CMP0054 )
cmake_policy( SET CMP0054 NEW )
endif()
|