summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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})