Skip to content

Commit 548b264

Browse files
authored
Fix warning C4530 (#3393)
* Fix warning C4530 * Rename FMT_EXCEPTIONS to FMT_USE_EXCEPTIONS
1 parent 847db33 commit 548b264

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,13 @@ endif ()
304304
# ---------------------------------------------------------------------------------------
305305
if (SPDLOG_NO_EXCEPTIONS)
306306
if (NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
307-
target_compile_definitions(spdlog PUBLIC FMT_EXCEPTIONS=0)
307+
target_compile_definitions(spdlog PUBLIC FMT_USE_EXCEPTIONS=0)
308308
endif ()
309309
if (NOT MSVC)
310310
target_compile_options(spdlog PRIVATE -fno-exceptions)
311311
else ()
312312
target_compile_options(spdlog PRIVATE /EHs-c-)
313+
target_compile_definitions(spdlog PRIVATE _HAS_EXCEPTIONS=0)
313314
endif ()
314315
endif ()
315316
# ---------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)