aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2020-02-12 04:53:39 +0100
committerFriedrich W. H. Kossebau <kossebau@kde.org>2020-02-12 04:53:39 +0100
commit1c8d282ec863de24664c5de3ffb0c9f77991ca79 (patch)
tree97029a0aa2c61294cf70bc0951a4a47de2e4ab3a /modules
parentda4c8108eaf7d5d70beece22a4d94c2128bff2cc (diff)
downloadextra-cmake-modules-1c8d282ec863de24664c5de3ffb0c9f77991ca79.tar.gz
extra-cmake-modules-1c8d282ec863de24664c5de3ffb0c9f77991ca79.tar.bz2
ECMQtDeclareLoggingCategory: gently deal with no categories exported
With some build configurations no catgories might be registered for a given export id. Instead of failing hard and thus forcing to catch this situation explicitly on the caller side, be grateful on the callee side and just generate an empty file, so the installed file set is consistent. GIT_SILENT
Diffstat (limited to 'modules')
-rw-r--r--modules/ECMQtDeclareLoggingCategory.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMQtDeclareLoggingCategory.cmake b/modules/ECMQtDeclareLoggingCategory.cmake
index a2260c71..640afa9e 100644
--- a/modules/ECMQtDeclareLoggingCategory.cmake
+++ b/modules/ECMQtDeclareLoggingCategory.cmake
@@ -335,7 +335,7 @@ function(ecm_qt_install_logging_categories)
get_property(has_category GLOBAL PROPERTY "${_propertyprefix}_CATEGORIES" SET)
if (NOT has_category)
- message(FATAL_ERROR "${ARGS_EXPORT} is an unknown qt logging category export name.")
+ message(AUTHOR_WARNING "No Qt logging categories exported for \"${ARGS_EXPORT}\", generating & installing an empty file.")
endif()
get_property(_categories GLOBAL PROPERTY "${_propertyprefix}_CATEGORIES")