CMake: Warn if DEPLOY_TOOL_OPTIONS is used on Linux

...or rather when it's used with the generic deployment tool.

Task-number: QTBUG-121708
Change-Id: I161564923a43c82150f581874ba20a9ad6de310f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit e39d13bc873a651007d45b23e1d87a676224cba2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Joerg Bornemann 2024-01-30 17:28:02 +01:00 committed by Qt Cherry-pick Bot
parent ce5b1750fd
commit 564e3ed628

View File

@ -464,6 +464,13 @@ function(qt6_deploy_runtime_dependencies)
if(__QT_DEPLOY_TOOL STREQUAL "GRD")
message(STATUS "Running generic Qt deploy tool on ${arg_EXECUTABLE}")
if(NOT "${arg_DEPLOY_TOOL_OPTIONS}" STREQUAL "")
message(WARNING
"DEPLOY_TOOL_OPTIONS was specified but has no effect when using the generic "
"deployment tool."
)
endif()
# Construct the EXECUTABLES, LIBRARIES and MODULES arguments.
list(APPEND tool_options EXECUTABLES ${arg_EXECUTABLE})
if(NOT "${arg_ADDITIONAL_EXECUTABLES}" STREQUAL "")