From 14db590c5ec56301318893b07abd52267417885c Mon Sep 17 00:00:00 2001 From: buschmann23 Date: Fri, 28 Jan 2022 17:44:19 +0100 Subject: [PATCH] No debug output in release mode --- src/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7efbae5..09571a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -74,14 +74,12 @@ target_compile_definitions(HbnSfosComponentsQt${QT_VERSION_MAJOR} $<$:HBNSC_WITH_SQLITE> $<$:HBNSC_WITH_DBUS> $<$:HBNSC_WITH_FIRFUORIDA> + $<$,$>:QT_QML_DEBUG> + $<$>:QT_NO_DEBUG_OUTPUT> + $<$>:QT_DEPRECATED_WARNINGS> ) if(ENABLE_MAINTAINER_FLAGS) - target_compile_definitions(HbnSfosComponentsQt${QT_VERSION_MAJOR} - PRIVATE - QT_DEPRECATED_WARNINGS - $<$,$>:QT_QML_DEBUG> - ) target_compile_options(HbnSfosComponentsQt${QT_VERSION_MAJOR} PRIVATE -Wall