Silence deprecation warnings from CMake 3.0+
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 24 Jul 2014 21:08:29 +0000 (23:08 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 24 Jul 2014 21:11:01 +0000 (23:11 +0200)
commitb3f7afd004184dfbf23f4fe9b6880a50f7a4faf1
tree8850c74b869f2207100ea2403f37d48be76fb033
parent67f63933b2ed8442c8e8ca7cbf925f6cf134d97e
Silence deprecation warnings from CMake 3.0+

Setting COMPILE_DEFINITIONS_<Config> 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...
CMakeLists.txt