mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
use spdlog release 1.14.1 moving forward
This commit is contained in:
parent
13eabfabcb
commit
7b9f92a0aa
@ -1,15 +1,17 @@
|
||||
set(SPDLOG_USE_FMT ON)
|
||||
set(SPDLOG_BUILD_SHARED OFF)
|
||||
|
||||
# Define the level at which SPDLOG_ compilation level is defined
|
||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
add_compile_definitions(SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG)
|
||||
else()
|
||||
else ()
|
||||
add_compile_definitions(SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
fetchcontent_declare(
|
||||
spdlog
|
||||
GIT_REPOSITORY https://github.com/gabime/spdlog.git
|
||||
GIT_TAG v2.x
|
||||
GIT_TAG v1.14.1
|
||||
)
|
||||
fetchcontent_makeavailable(spdlog)
|
||||
fetchcontent_makeavailable(spdlog)
|
||||
include_directories("${spdlog_SOURCE_DIR}/include")
|
Loading…
Reference in New Issue
Block a user