From ae0eb75402221964be2809659449a0c91923a6b2 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 10 Jan 2024 00:13:11 +0200 Subject: [PATCH] Update no exception flag in CMakeLists.txt for msvc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9be358dd..13d32822 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -332,7 +332,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() # ---------------------------------------------------------------------------------------