diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2009-05-06 15:21:22 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2009-05-06 15:21:22 (GMT) |
commit | 22f1c78677f3a764d533b13d47538a07d327ad8f (patch) | |
tree | 19b8134cc334f9e9fcf28a784812a4daf2f9c062 /Modules/FindQt4.cmake | |
parent | 2d22e11a4a27d196ce41a8668154f6d72b054af0 (diff) | |
download | CMake-22f1c78677f3a764d533b13d47538a07d327ad8f.zip CMake-22f1c78677f3a764d533b13d47538a07d327ad8f.tar.gz CMake-22f1c78677f3a764d533b13d47538a07d327ad8f.tar.bz2 |
BUG: Fix spaces in file paths for lupdate command
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index c5975c4..7c66cb5 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1253,7 +1253,10 @@ IF (QT4_QMAKE_FOUND) # long for some systems GET_FILENAME_COMPONENT(_ts_name ${_ts_file} NAME_WE) SET(_ts_pro ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${_ts_name}_lupdate.pro) - STRING(REPLACE ";" " " _pro_srcs "${_my_sources}") + SET(_pro_srcs) + FOREACH(_pro_src ${_my_sources}) + SET(_pro_srcs "${_pro_srcs} \"${_pro_src}\"") + ENDFOREACH(_pro_src ${_my_sources}) FILE(WRITE ${_ts_pro} "SOURCES = ${_pro_srcs}") ENDIF(_my_sources) ADD_CUSTOM_COMMAND(OUTPUT ${_ts_file} |