Skip to content

CMake: fix missing quotes when generating deploy cmake scripts #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/corelib/Qt6CoreMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3237,13 +3237,13 @@ function(_qt_internal_write_target_deploy_info out_file)
set(content "")
foreach(target IN LISTS targets)
set(var_prefix "__QT_DEPLOY_TARGET_${target}")
string(APPEND content "set(${var_prefix}_FILE $<TARGET_FILE:${target}>)\n")
string(APPEND content "set(${var_prefix}_FILE \"$<TARGET_FILE:${target}>\")\n")
get_target_property(target_type ${target} TYPE)
string(APPEND content "set(${var_prefix}_TYPE ${target_type})\n")
string(APPEND content "set(${var_prefix}_TYPE \"${target_type})\"\n")
if(WIN32 AND CMAKE_VERSION GREATER_EQUAL "3.21"
AND target_type IN_LIST dynamic_target_types)
string(APPEND content
"set(${var_prefix}_RUNTIME_DLLS $<TARGET_RUNTIME_DLLS:${target}>)\n")
"set(${var_prefix}_RUNTIME_DLLS \"$<TARGET_RUNTIME_DLLS:${target}>\")\n")
endif()
endforeach()
file(GENERATE OUTPUT "${out_file}" CONTENT "${content}")
Expand Down