X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=CMakeLists.txt;h=7e238174cd7dcfa0f04c82bc5a3a5a168594407c;hb=8d4390492e6a46e4e5f3bac54a74fde56756d23a;hp=a9a32ac7230791a4b06a1490077f147b5018c332;hpb=9d53543b484d6700defb05eea7bc9e3d7c97c3c3;p=quassel.git diff --git a/CMakeLists.txt b/CMakeLists.txt index a9a32ac7..7e238174 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,11 @@ 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. +if (CMAKE_MAJOR_VERSION GREATER 2) + cmake_policy(SET CMP0043 OLD) +endif() # Options and variables that can be set on the command line #####################################################################