[colobot] 40/74: Enable C++ exceptions in MSVC

Didier Raboud odyx at moszumanska.debian.org
Mon Nov 7 07:50:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit e085b4b4223eacf6d1fd4a9bd1163cfc4ff4eb27
Author: Unknown <mateuszprzybyl at simbax.info>
Date:   Wed Aug 24 13:34:51 2016 +0200

    Enable C++ exceptions in MSVC
    
    Because warnings.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 48aebbc..7d739cb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,7 +152,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
 elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
     message(STATUS "Detected MSVC compiler")
 
-    set(NORMAL_CXX_FLAGS "/wd\"4244\" /wd\"4309\" /wd\"4800\" /wd\"4996\" /wd\"4351\"") # disable some useless warnings
+    set(NORMAL_CXX_FLAGS "/wd\"4244\" /wd\"4309\" /wd\"4800\" /wd\"4996\" /wd\"4351\" /EHsc") # disable some useless warnings
     set(RELEASE_CXX_FLAGS "")
     set(DEBUG_CXX_FLAGS "")
     set(TEST_CXX_FLAGS "")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list