Skip to content

Commit 6508fd5

Browse files
committed
CMake: Fix Qt deployment for paths with spaces
1 parent ad0efb2 commit 6508fd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LSLCMake.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ function(installLSLApp target)
143143
install(CODE "
144144
message (STATUS \"Running windeployqt on $<TARGET_FILE:${target}>\")
145145
execute_process(
146-
COMMAND ${QT_DEPLOYQT_EXECUTABLE} --no-translations
146+
COMMAND \"${QT_DEPLOYQT_EXECUTABLE}\" --no-translations
147147
--no-system-d3d-compiler --no-opengl-sw --no-virtualkeyboard
148148
--no-compiler-runtime --dry-run --list mapping
149-
$<TARGET_FILE:${target}>
149+
\"$<TARGET_FILE:${target}>\"
150150
OUTPUT_VARIABLE output
151151
OUTPUT_STRIP_TRAILING_WHITESPACE
152152
)
153-
file(TO_CMAKE_PATH \${output} output) # convert slashes
153+
file(TO_CMAKE_PATH \"\${output}\" output) # convert slashes
154154
separate_arguments(_files WINDOWS_COMMAND \${output})
155155
while(_files)
156156
list(POP_FRONT _files _src)

0 commit comments

Comments
 (0)