From 68f981047c8cec031f55b5ee571c25b9ccd1fcd9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 17 May 2024 22:40:34 +0500 Subject: feat: debug option --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index be64a63..c4146b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ add_definitions(-DUSE_TLS=1) add_executable(Bot) +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_definitions(Bot PRIVATE DEBUG_MODE) +endif() + set_target_properties( Bot PROPERTIES DESCRIPTION ${PROJECT_DESCRIPTION} -- cgit v1.2.3