diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-17 22:40:34 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-17 22:40:34 +0500 |
| commit | 68f981047c8cec031f55b5ee571c25b9ccd1fcd9 (patch) | |
| tree | f8b09f48b05d7dcc699aa65a367a1c02f30d7a23 /CMakeLists.txt | |
| parent | 62a6b100196e2a3c596b954691d20faa534dc523 (diff) | |
feat: debug option
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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} |
