Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
This probably affects earlier releases as well...
The following invokes windeployqt with --libdir bin even though QT_DEPLOY_LIB_DIR is set to .
# # Force the values of QT_DEPLOY... variables # set (QT_DEPLOY_BIN_DIR ".") set (QT_DEPLOY_LIBEXEC_DIR ".") set (QT_DEPLOY_LIB_DIR ".") set (QT_DEPLOY_PLUGINS_DIR ".") # # Set options for the deployment script # set (deploy_tool_options_arg "") if(APPLE) set(deploy_tool_options_arg "${deploy_tool_options_arg} --hardened-runtime") elseif(WIN32) set(deploy_tool_options_arg "${deploy_tool_options_arg} --pdb") endif() # Generate a deployment script to be executed at install time # App bundles on macOS have an .app suffix if(APPLE) set(executable_path "$<TARGET_FILE_NAME:DeepSkyStacker>.app") else() message ("Qt Deploy Bin Dir: " ${QT_DEPLOY_BIN_DIR}) message ("Qt Deploy Lib Dir: " ${QT_DEPLOY_LIB_DIR}) message ("Target filename:" $<TARGET_FILE_NAME:DeepSkyStacker>) set(executable_path "${QT_DEPLOY_BIN_DIR}/$<TARGET_FILE_NAME:DeepSkyStacker>") endif() message ("executable_path: " ${executable_path}) message ("deploy tools options arg: " ${deploy_tool_options_arg}) qt_generate_deploy_script( TARGET DeepSkyStacker OUTPUT_SCRIPT deploy_script CONTENT " qt_deploy_runtime_dependencies( EXECUTABLE \"${executable_path}\" DEPLOY_TOOL_OPTIONS ${deploy_tool_options_arg} GENERATE_QT_CONF VERBOSE )" ) INSTALL (TARGETS DeepSkyStacker) INSTALL (SCRIPT ${deploy_script})
I can force the use of --libdir . by changing:
set (deploy_tool_options_arg "")
to read:
set (deploy_tool_options_arg "-- libdir .")
but that's a pretty tacky way to get round the problem.