build: workaround for clang-cl

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

View File

@ -71,6 +71,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