cmake: Add exception handling support to MSVC compile flags
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 10 Apr 2018 20:18:33 +0000 (22:18 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 10 Apr 2018 21:04:11 +0000 (23:04 +0200)
commit7a8ea3eee1dcff4eaa5398d1cf5739fa32eccd9e
tree6abdb3db0b31de24e37907eff30d691b7356d7c3
parent68878dc8366f2f4a0afe132847aad9a51a80cdbf
cmake: Add exception handling support to MSVC compile flags

Since STL types may throw, MSVC needs to get told to support
exceptions by specifying the /EHsc flag. Otherwise, it warns about
the lack thereof, even though Quassel itself does not use nor handle
exceptions.

Closes GH-350.
cmake/QuasselCompileSettings.cmake