Skip to content

Commit 8125421

Browse files
bstaleticYannickJadoul
authored andcommitted
Fix builds
1 parent b53ca5c commit 8125421

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ else()
1616
cmake_policy(VERSION 3.18)
1717
endif()
1818

19+
if (MSVC)
20+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
21+
endif()
1922
# Only needed for CMake < 3.5 support
2023
include(CMakeParseArguments)
2124

0 commit comments

Comments
 (0)