1
# Copyright (C) 2003-2016 Jarosław Staniek <staniek@kde.org>
3
# Redistribution and use is allowed according to the terms of the BSD license.
4
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
6
cmake_policy(SET CMP0002 OLD)
7
cmake_policy(SET CMP0017 NEW)
8
cmake_policy(SET CMP0022 OLD)
9
cmake_policy(SET CMP0048 NEW) # for PROJECT_VERSION
11
if(POLICY CMP0059) # Don’t treat DEFINITIONS as a built-in directory property.
12
cmake_policy(SET CMP0059 OLD)
14
if(POLICY CMP0063) # Honor visibility properties for all target types (since cmake 3.3)
15
cmake_policy(SET CMP0063 NEW)