projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5be9872
)
Getting rid of the annoying cmake-2.6 warning
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 8 Jul 2008 15:50:19 +0000
(17:50 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 8 Jul 2008 15:50:32 +0000
(17:50 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
c6dd28d
..
29fd963
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-14,9
+14,9
@@
project(QuasselIRC)
# Target scopes don't work in older versions
cmake_minimum_required(VERSION 2.4.7 FATAL_ERROR)
# Target scopes don't work in older versions
cmake_minimum_required(VERSION 2.4.7 FATAL_ERROR)
-# This would suppress annoying warnings on cmake-2.6, but we can't use it
-# with 2.4, so... DUH!
-# cmake_policy(SET CMP0003 OLD) # suppress linker warnings
+if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 OLD) # suppress linker warnings
+endif(COMMAND cmake_policy)
# Use our own (well, KDE's) version of some modules
# In particular cmake's FindQt4 and FindOpenSSL are quite buggy
# Use our own (well, KDE's) version of some modules
# In particular cmake's FindQt4 and FindOpenSSL are quite buggy