From 2f260d57123c94bc3e4a6121fa0bf3cb263e5f72 Mon Sep 17 00:00:00 2001 From: Jeff <87916144+Programicus@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:36:39 -0800 Subject: [PATCH] Fix MSVC compile flag for no exceptions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2f6b61cd..d4b3c1b2b 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() # ---------------------------------------------------------------------------------------