Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
disable debug log when build release version (#743)
Browse files Browse the repository at this point in the history
Signed-off-by: Yusheng.Ma <[email protected]>
  • Loading branch information
Presburger authored Mar 16, 2023
1 parent a926d86 commit 163be37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/libs/libeasylogging.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
add_definitions(-DELPP_THREAD_SAFE)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_definitions(-DELPP_DISABLE_DEBUG_LOGS)
endif()

include_directories(thirdparty/easyloggingpp/src)
add_library(easyloggingpp STATIC thirdparty/easyloggingpp/src/easylogging++.cc)

0 comments on commit 163be37

Please sign in to comment.