mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
feat(logging): enable fine-grained spdlog levels based on build type
This commit is contained in:
@@ -30,6 +30,12 @@ target_link_libraries(uno-game-lib PUBLIC Slint::Slint)
|
||||
target_link_libraries(uno-game-lib PUBLIC argparse::argparse)
|
||||
target_link_libraries(uno-game-lib PUBLIC spdlog::spdlog)
|
||||
|
||||
# Enable fine-grained spdlog levels: in Debug build, compile-in trace/debug; in others, keep info+
|
||||
target_compile_definitions(uno-game-lib PUBLIC
|
||||
$<$<CONFIG:Debug>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE>
|
||||
$<$<NOT:$<CONFIG:Debug>>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO>
|
||||
)
|
||||
|
||||
slint_target_sources(uno-game-lib ui/MainWindow.slint)
|
||||
|
||||
# Uno Client
|
||||
|
||||
Reference in New Issue
Block a user