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
parent
838025bd73
commit
3a955edb1a
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Reference in New Issue