X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=c82460948904f6b9fa35ecbdad646cd7be948f27;hp=650720a775a3f64b892c51dfb1857d10857f1472;hb=7f586ab22eee4c914901c608304d1da144bc3789;hpb=ba934ceb1bfe30d01d5fb5c072c3197f8080be04 diff --git a/CMakeLists.txt b/CMakeLists.txt index 650720a7..c8246094 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,19 +49,8 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH 1) # Enable various flags on gcc if(CMAKE_COMPILER_IS_GNUCXX) - include(CheckCXXCompilerFlag) - check_cxx_compiler_flag(-Wall HAVE_WALL) - if(HAVE_WALL) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") - endif(HAVE_WALL) - check_cxx_compiler_flag(-Wextra HAVE_WEXTRA) - if(HAVE_WEXTRA) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") - endif(HAVE_WEXTRA) - check_cxx_compiler_flag(-ansi HAVE_ANSI) - if(HAVE_ANSI) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi") - endif(HAVE_ANSI) + # Let's just hope that all gccs support these options and skip the tests... + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -Wall -Wextra -Wnon-virtual-dtor") endif(CMAKE_COMPILER_IS_GNUCXX) set(QT_MIN_VERSION "4.4.0")