Remove DEBUG define
This commit is contained in:
parent
f5bb15f72e
commit
0ef26be03f
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue