~ubuntu-branches/debian/sid/kexi/sid

« back to all changes in this revision

Viewing changes to cmake/modules/SetKexiCMakePolicies.cmake

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2017-06-24 20:10:10 UTC
  • Revision ID: package-import@ubuntu.com-20170624201010-5lrzd5r2vwthwifp
Tags: upstream-3.0.1.1
Import upstream version 3.0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2003-2016 Jarosław Staniek <staniek@kde.org>
 
2
#
 
3
# Redistribution and use is allowed according to the terms of the BSD license.
 
4
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
5
 
 
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
 
10
 
 
11
if(POLICY CMP0059) # Don’t treat DEFINITIONS as a built-in directory property.
 
12
    cmake_policy(SET CMP0059 OLD)
 
13
endif()
 
14
if(POLICY CMP0063) # Honor visibility properties for all target types (since cmake 3.3)
 
15
    cmake_policy(SET CMP0063 NEW)
 
16
endif()