Skip to content

Commit f19f4ea

Browse files
author
Joker-Principal
committed
CMake: fix missing quotes when generating deploy cmake scripts
1 parent 82eb0fc commit f19f4ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/corelib/Qt6CoreMacros.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3237,13 +3237,13 @@ function(_qt_internal_write_target_deploy_info out_file)
32373237
set(content "")
32383238
foreach(target IN LISTS targets)
32393239
set(var_prefix "__QT_DEPLOY_TARGET_${target}")
3240-
string(APPEND content "set(${var_prefix}_FILE $<TARGET_FILE:${target}>)\n")
3240+
string(APPEND content "set(${var_prefix}_FILE \"$<TARGET_FILE:${target}>\")\n")
32413241
get_target_property(target_type ${target} TYPE)
3242-
string(APPEND content "set(${var_prefix}_TYPE ${target_type})\n")
3242+
string(APPEND content "set(${var_prefix}_TYPE \"${target_type})\"\n")
32433243
if(WIN32 AND CMAKE_VERSION GREATER_EQUAL "3.21"
32443244
AND target_type IN_LIST dynamic_target_types)
32453245
string(APPEND content
3246-
"set(${var_prefix}_RUNTIME_DLLS $<TARGET_RUNTIME_DLLS:${target}>)\n")
3246+
"set(${var_prefix}_RUNTIME_DLLS \"$<TARGET_RUNTIME_DLLS:${target}>\")\n")
32473247
endif()
32483248
endforeach()
32493249
file(GENERATE OUTPUT "${out_file}" CONTENT "${content}")

0 commit comments

Comments
 (0)