projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2565865
)
Enable warnings on gcc
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 15 Jun 2008 00:29:36 +0000
(
02:29
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 15 Jun 2008 00:29:36 +0000
(
02:29
+0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
c88ba69
..
bc14806
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-21,6
+21,21
@@
if(STATICWIN)
set(CMAKE_BUILD_TYPE Release)
endif(STATICWIN)
set(CMAKE_BUILD_TYPE Release)
endif(STATICWIN)
+# Enable various flags on gcc
+include(CheckCXXCompilerFlag)
+check_cxx_compiler_flag(-Wall Wall)
+if(Wall)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
+endif(Wall)
+check_cxx_compiler_flag(-Wextra Wextra)
+if(Wextra)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
+endif(Wextra)
+check_cxx_compiler_flag(-ansi ansi)
+if(ansi)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi")
+endif(ansi)
+
set(QT_MIN_VERSION "4.4.0")
# By default, we build all binaries
set(QT_MIN_VERSION "4.4.0")
# By default, we build all binaries