summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-01-30 17:28:02 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2024-01-31 15:19:49 +0100
commite39d13bc873a651007d45b23e1d87a676224cba2 (patch)
tree9241fc76d829e399eb7f37c7882015a303f2040d
parent528032c02771ddc35d054ff8d414b382904b607e (diff)
CMake: Warn if DEPLOY_TOOL_OPTIONS is used on Linux
...or rather when it's used with the generic deployment tool. Pick-to: 6.7 Task-number: QTBUG-121708 Change-Id: I161564923a43c82150f581874ba20a9ad6de310f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/corelib/Qt6CoreDeploySupport.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreDeploySupport.cmake b/src/corelib/Qt6CoreDeploySupport.cmake
index a46b99ac12..e3226b57a3 100644
--- a/src/corelib/Qt6CoreDeploySupport.cmake
+++ b/src/corelib/Qt6CoreDeploySupport.cmake
@@ -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 "")