projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
53211b3
)
Filter -ansi from CMAKE_CXX_FLAGS
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 6 Feb 2015 18:59:58 +0000
(19:59 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 6 Feb 2015 18:59:58 +0000
(19:59 +0100)
This was set by older versions of KDE 4 and negates -std=c++11.
CMakeLists.txt
patch
|
blob
|
history
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()
+# 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
#####################################################################