X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=2c2ff02619ad8262f5ea0d930d21be760c7d472f;hp=9fe8bf55e9ffbf7c60de8cffb7795aab375f9f8e;hb=ec86ead09bc7a03e0f264dfc4e68c385d8bec7e3;hpb=d32f2fcafe3d3925cd64e332e0d02261a134af21 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fe8bf55..2c2ff026 100644 --- 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 #####################################################################