From: Manuel Nickschas Date: Thu, 24 Jul 2014 21:08:29 +0000 (+0200) Subject: Silence deprecation warnings from CMake 3.0+ X-Git-Tag: 0.10.1~22 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=b3f7afd004184dfbf23f4fe9b6880a50f7a4faf1 Silence deprecation warnings 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.1 currently. So we explicitly tell CMake to use OLD behavior for CMP0043. And for CMP0026, which is related to our handling of genversion (no need to fix this properly, as genversion is gone in Quassel 0.11 anyway). And while we're at it, we remove setting CMP0003 to NEW, this hasn't been needed in a very long time... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 42bacd81..0ed071a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,8 @@ include(CheckCXXCompilerFlag) cmake_minimum_required(VERSION 2.8.1 FATAL_ERROR) if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) + cmake_policy(SET CMP0026 OLD) + cmake_policy(SET CMP0043 OLD) endif(COMMAND cmake_policy) # Use our own (well, and KDE's) version of some modules