summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-06-11 18:45:04 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-06-12 14:00:03 +0200
commit3a955edb1a2be5be06d4f9d5ea7348ae95c5c0a5 (patch)
treea1d13cbd24b363b35238efdfffb38b53cc81707b /cmake
parent838025bd7397e7785b7764938159abff92354c7c (diff)
CMake: Fix default TARGET_DESCRIPTION for Qt tools
Like in the qmake build, we now set the target description of a Qt tool to a value, different from the description of the Qt libraries. Fixes: QTBUG-84900 Change-Id: I93419ddd513c83fe8488e70b5a8328cadc3541c7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuild.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index ba08de5a98..618e166e17 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -3505,7 +3505,14 @@ function(qt_add_executable name)
message(FATAL_ERROR "Invalid version format")
endif()
endif()
- qt_set_target_info_properties(${name} ${ARGN} TARGET_VERSION "${arg_VERSION}")
+
+ if("${arg_TARGET_DESCRIPTION}" STREQUAL "")
+ set(arg_TARGET_DESCRIPTION "Qt ${name}")
+ endif()
+
+ qt_set_target_info_properties(${name} ${ARGN}
+ TARGET_DESCRIPTION "${arg_TARGET_DESCRIPTION}"
+ TARGET_VERSION "${arg_VERSION}")
if (WIN32)
qt6_generate_win32_rc_file(${name})