Skip to content

Commit

Permalink
No debug output in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
buschmann23 committed Jan 28, 2022
1 parent d07fe56 commit 14db590
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ target_compile_definitions(HbnSfosComponentsQt${QT_VERSION_MAJOR}
$<$<BOOL:${HBNSC_WITH_SQLITE}>:HBNSC_WITH_SQLITE>
$<$<BOOL:${HBNSC_WITH_DBUS}>:HBNSC_WITH_DBUS>
$<$<BOOL:${HBNSC_WITH_FIRFUORIDA}>:HBNSC_WITH_FIRFUORIDA>
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>
$<$<NOT:$<CONFIG:Debug>>:QT_DEPRECATED_WARNINGS>
)

if(ENABLE_MAINTAINER_FLAGS)
target_compile_definitions(HbnSfosComponentsQt${QT_VERSION_MAJOR}
PRIVATE
QT_DEPRECATED_WARNINGS
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
)
target_compile_options(HbnSfosComponentsQt${QT_VERSION_MAJOR}
PRIVATE
-Wall
Expand Down

0 comments on commit 14db590

Please sign in to comment.