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:06:33 +0000 (23:06 +0200)
commitbdeeb5d619255389a64f43ad69de862c79046116
tree03f6a4f88ee361f054cf2dbf79f8ba3216b35b8e
parent35ca85f1c4371ee28d00d5ff0195a5b44aadb299
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.

(cherry picked from commit 7a8ea3eee1dcff4eaa5398d1cf5739fa32eccd9e)
cmake/QuasselCompileSettings.cmake