projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the AboutDlg layout slightly prettier
[quassel.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
9fe8bf5
..
2c2ff02
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-425,6
+425,11
@@
if (MINGW AND NOT KDE4_FOUND)
add_definitions(-U__STRICT_ANSI__)
endif()
add_definitions(-U__STRICT_ANSI__)
endif()
+# Sanitize compiler flags - old versions of KDE set -ansi, which breaks -std=c++11
+if (CMAKE_COMPILER_IS_GNUCXX)
+ string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+endif()
+
# Setup KDE / KDE Frameworks
#####################################################################
# Setup KDE / KDE Frameworks
#####################################################################