Remove DEBUG define

This commit is contained in:
Jonas Kvinge 2021-03-16 17:12:44 +01:00
parent f5bb15f72e
commit 0ef26be03f
3 changed files with 1 additions and 7 deletions

View File

@ -69,11 +69,6 @@ add_compile_options(${COMPILE_OPTIONS})
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
add_definitions(-DNDEBUG)
add_definitions(-DQT_NO_DEBUG_OUTPUT)
#add_definitions(-DQT_NO_WARNING_OUTPUT)
endif()
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
set(DEBUG ON)
endif()
if(APPLE)

View File

@ -24,7 +24,6 @@
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
#define CMAKE_EXECUTABLE_SUFFIX "${CMAKE_EXECUTABLE_SUFFIX}"
#cmakedefine DEBUG
#cmakedefine HAVE_BACKTRACE
#cmakedefine HAVE_GIO
#cmakedefine HAVE_DBUS

View File

@ -233,7 +233,7 @@ int main(int argc, char* argv[]) {
Q_INIT_RESOURCE(translations);
#endif
#ifdef DEBUG
#ifndef QT_NO_DEBUG_OUTPUT
QLoggingCategory::defaultCategory()->setEnabled(QtDebugMsg, true);
#endif