Skip to content

Commit 461da90

Browse files
Alexander KurbatovAlexander Kurbatov
Alexander Kurbatov
authored and
Alexander Kurbatov
committed
build: Enable proper exception handling on Windows
Signed-off-by: Alexander Kurbatov <Alexander.Kurbatov@acronis.com>
1 parent d6ed398 commit 461da90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include_directories(SYSTEM
1919
link_directories(${PROJECT_BINARY_DIR}/contrib/cpp-sc2/bin)
2020

2121
if (MSVC)
22-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX-")
22+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX- /EHsc")
2323
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2424
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weverything \
2525
-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded \

0 commit comments

Comments
 (0)