From: Manuel Nickschas Date: Thu, 24 Jul 2014 21:02:45 +0000 (+0200) Subject: Silence deprecation warning from CMake 3.0+ X-Git-Tag: 0.11.0~25 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=0270939fb84c62cd39d84dd8484a75f6c8dde14c;ds=inline Silence deprecation warning from CMake 3.0+ Setting COMPILE_DEFINITIONS_ has been deprecated since CMake 3.0. However, the "proper" way of doing things now (generator expressions) have been support only since CMake 2.8.10, and we require 2.8.9 currently. Thus, we explicitly enable OLD behavior for CMP0043. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a9a32ac7..0c1141f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,10 @@ include(FeatureSummary) include(QuasselCompileSettings) include(QuasselMacros) +# Setting COMPILE_DEFINITIONS_ is deprecated since CMake 3.0 in favor of generator expressions. +# These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy. +cmake_policy(SET CMP0043 OLD) + # Options and variables that can be set on the command line #####################################################################