From 7cb90d1ab29f43b87e4e89e6707d02e9ddd6e8e7 Mon Sep 17 00:00:00 2001 From: Jeff <87916144+Programicus@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:45:14 -0800 Subject: [PATCH] Fix MSVC compile flag for no exceptions (#2974) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() # ---------------------------------------------------------------------------------------