Skip to content

Commit 44f67b2

Browse files
authored
Merge pull request #360 from adierking/cl
build: fix clang-cl exception flags
2 parents 03696d7 + ef5040c commit 44f67b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ if(WIN32)
144144
PRIVATE
145145
_CRT_NONSTDC_NO_WARNINGS)
146146
endif()
147-
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
148-
target_compile_options(dispatch PRIVATE /EHsc-)
149-
else()
147+
if(NOT "${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
150148
target_compile_options(dispatch PRIVATE -fno-exceptions)
151149
endif()
152150
if(DISPATCH_ENABLE_ASSERTS)

0 commit comments

Comments
 (0)