From 863048b0e37f72777d6cdc9432b1b47033b92c02 Mon Sep 17 00:00:00 2001 From: Hinageshi <2247001665@qq.com> Date: Wed, 23 Apr 2025 19:55:05 +0800 Subject: [PATCH] Fix warning C4530 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1a4a41e..74309a86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,6 +310,7 @@ if (SPDLOG_NO_EXCEPTIONS) target_compile_options(spdlog PRIVATE -fno-exceptions) else () target_compile_options(spdlog PRIVATE /EHs-c-) + target_compile_definitions(spdlog PRIVATE _HAS_EXCEPTIONS=0) endif () endif () # ---------------------------------------------------------------------------------------