2024-07-02 15:16:27 +00:00
|
|
|
set(SPDLOG_USE_FMT ON)
|
2024-07-10 13:47:31 +00:00
|
|
|
set(SPDLOG_BUILD_SHARED OFF)
|
2024-07-12 19:24:32 +00:00
|
|
|
set(SPDLOG_FMT_EXTERNAL ON)
|
2024-07-08 22:06:49 +00:00
|
|
|
|
|
|
|
# Define the level at which SPDLOG_ compilation level is defined
|
2024-07-10 13:47:31 +00:00
|
|
|
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
2024-07-08 22:06:49 +00:00
|
|
|
add_compile_definitions(SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG)
|
2024-07-10 13:47:31 +00:00
|
|
|
else ()
|
2024-07-08 22:06:49 +00:00
|
|
|
add_compile_definitions(SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO)
|
2024-07-10 13:47:31 +00:00
|
|
|
endif ()
|
2024-07-08 22:06:49 +00:00
|
|
|
|
2024-07-02 15:16:27 +00:00
|
|
|
fetchcontent_declare(
|
|
|
|
spdlog
|
|
|
|
GIT_REPOSITORY https://github.com/gabime/spdlog.git
|
2024-07-10 13:47:31 +00:00
|
|
|
GIT_TAG v1.14.1
|
2024-07-02 15:16:27 +00:00
|
|
|
)
|
2024-07-10 13:47:31 +00:00
|
|
|
fetchcontent_makeavailable(spdlog)
|