commit | ef5040c017e47fa932a5c3e8b0b17f50b77d4c25 | [log] [tgz] |
---|---|---|
author | Aaron Dierking <aarond@fb.com> | Tue Jun 12 10:56:57 2018 -0700 |
committer | Aaron Dierking <aarond@fb.com> | Tue Jun 12 10:59:49 2018 -0700 |
tree | 95d7f1d6b5dcfeac1f15ffef2734e0406e4043cb | |
parent | 4ac77b7d9c0beac0526f29e6eb533d6aea8a2d95 [diff] |
build: fix clang-cl exception flags
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d22432b..3908ea4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt
@@ -144,9 +144,7 @@ PRIVATE _CRT_NONSTDC_NO_WARNINGS) endif() -if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC") - target_compile_options(dispatch PRIVATE /EHsc-) -else() +if(NOT "${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC") target_compile_options(dispatch PRIVATE -fno-exceptions) endif() if(DISPATCH_ENABLE_ASSERTS)