|
|
@ -304,12 +304,13 @@ endif ()
|
|
|
|
# ---------------------------------------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------------------------------------
|
|
|
|
if (SPDLOG_NO_EXCEPTIONS)
|
|
|
|
if (SPDLOG_NO_EXCEPTIONS)
|
|
|
|
if (NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
|
|
|
|
if (NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
|
|
|
|
target_compile_definitions(spdlog PUBLIC FMT_EXCEPTIONS=0)
|
|
|
|
target_compile_definitions(spdlog PUBLIC FMT_USE_EXCEPTIONS=0)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
if (NOT MSVC)
|
|
|
|
if (NOT MSVC)
|
|
|
|
target_compile_options(spdlog PRIVATE -fno-exceptions)
|
|
|
|
target_compile_options(spdlog PRIVATE -fno-exceptions)
|
|
|
|
else ()
|
|
|
|
else ()
|
|
|
|
target_compile_options(spdlog PRIVATE /EHs-c-)
|
|
|
|
target_compile_options(spdlog PRIVATE /EHs-c-)
|
|
|
|
|
|
|
|
target_compile_definitions(spdlog PRIVATE _HAS_EXCEPTIONS=0)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
# ---------------------------------------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------------------------------------
|
|
|
|