Doc: Fix the example for qt_generate_deploy_script

The EXECUTABLE argument must point to the full path of the created
executable, not just the file name. Otherwise,
qt_deploy_runtime_dependencies won't file the file.

Pick-to: 6.8 6.9
Change-Id: I18b6214b9f46c0ad4b99ca57468fe272efb9d718
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2025-04-02 10:57:47 +02:00
parent 363f7000c5
commit e07b4d4394

View File

@ -20,7 +20,7 @@ qt_generate_deploy_script(
OUTPUT_SCRIPT deploy_script OUTPUT_SCRIPT deploy_script
CONTENT " CONTENT "
qt_deploy_runtime_dependencies( qt_deploy_runtime_dependencies(
EXECUTABLE $<TARGET_FILE_NAME:MyApp> EXECUTABLE $<TARGET_FILE:MyApp>
) )
") ")
install(SCRIPT ${deploy_script}) install(SCRIPT ${deploy_script})