X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=cmake%2FQuasselCompileSettings.cmake;h=f48dfb284152dddffe7afc7d9f928708766b6698;hb=refs%2Fheads%2F0.12;hp=9f3e00a78792f8e348202d0195e70b559d6e9b28;hpb=c4e71b711a440c5b24dcae785473e3a88ff77015;p=quassel.git diff --git a/cmake/QuasselCompileSettings.cmake b/cmake/QuasselCompileSettings.cmake index 9f3e00a7..f48dfb28 100644 --- a/cmake/QuasselCompileSettings.cmake +++ b/cmake/QuasselCompileSettings.cmake @@ -66,12 +66,15 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-function -Wno-undef -fno-strict-aliasing") -# For MSVC, at least do a version sanity check +# For MSVC, at least do a version sanity check... elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC") if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "18.0") message(WARNING "Your compiler is too old; we expect at least Visual Studio Nov 2013 CTP (MSVC 18). Your build will likely fail.") endif() + # ... and enable exception handling (required for STL types) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") + # Unknown/unsupported compiler else() message(WARNING "Unknown or unsupported compiler. Make sure to enable C++11 support. Good luck.")