build: workaround for clang-cl

This commit is contained in:
Eric Wasylishen 2022-05-03 02:32:36 -06:00
parent 0c4833226a
commit f916fe3c6a
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ if (ERICWTOOLS_ASAN)
add_link_options(-fsanitize=address)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
add_compile_options(/EHsc)
endif()
# 10.9: minimum version that supports unordered_map
# 10.14: required by tbb 2021.3.0 (due to use of alignas)
# 10.15: required by std::filesytstem