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>
bb10
Joerg Bornemann 2020-06-11 18:45:04 +02:00
parent 838025bd73
commit 3a955edb1a
1 changed files with 8 additions and 1 deletions

View File

@ -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})