Skip to content

Commit

Permalink
Project: reverse cmake BUILD_DEBUG logic to suppress runtime debug me…
Browse files Browse the repository at this point in the history
…ssages

None (used by Debian) and RelWithDebInfo generated binary with
detailed excessive internal debugging messages. These messages
are enabled for BUILD_DEBUG only after the change.

Signed-off-by: Pavel Pisa <[email protected]>
  • Loading branch information
ppisa committed Oct 26, 2022
1 parent e621a47 commit 0d049e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if (NOT "${SANITIZERS}" MATCHES "none" AND NOT "${WASM}" AND NOT "${MINGW}")
endif ()


if ("${BUILD_RELEASE}")
if (NOT "${BUILD_DEBUG}")
message(STATUS "Debug prints globally suppressed.")
add_definitions(-DQT_NO_DEBUG_OUTPUT=1)
endif ()
Expand Down

0 comments on commit 0d049e7

Please sign in to comment.