feat(llamacpp): correctly handle CMAKE_BUILD_TYPE for spdlog macros

This commit is contained in:
Morgan Funtowicz 2024-10-03 15:25:15 +02:00
parent aa1fcba59f
commit 7d1f8a2bd6

View File

@ -3,7 +3,7 @@ set(SPDLOG_BUILD_SHARED OFF)
set(SPDLOG_FMT_EXTERNAL ON)
# 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 ()
add_compile_definitions(SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO)