diff --git a/CMakeLists.txt b/CMakeLists.txt index b2f6b61c..d4b3c1b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,7 +265,7 @@ if(SPDLOG_NO_EXCEPTIONS) if(NOT MSVC) target_compile_options(spdlog PRIVATE -fno-exceptions) else() - target_compile_options(spdlog PRIVATE /EHsc) + target_compile_options(spdlog PRIVATE /EHs-c-) endif() endif() # ---------------------------------------------------------------------------------------