From 564e3ed628f504aeccc849ebd0e3154e0bed3dff Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 30 Jan 2024 17:28:02 +0100 Subject: [PATCH] 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 (cherry picked from commit e39d13bc873a651007d45b23e1d87a676224cba2) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/Qt6CoreDeploySupport.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/corelib/Qt6CoreDeploySupport.cmake b/src/corelib/Qt6CoreDeploySupport.cmake index 3ec2e042780..11765fbec9b 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 "")