summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-05-06 15:21:22 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-05-06 15:21:22 (GMT)
commit22f1c78677f3a764d533b13d47538a07d327ad8f (patch)
tree19b8134cc334f9e9fcf28a784812a4daf2f9c062 /Modules
parent2d22e11a4a27d196ce41a8668154f6d72b054af0 (diff)
downloadCMake-22f1c78677f3a764d533b13d47538a07d327ad8f.zip
CMake-22f1c78677f3a764d533b13d47538a07d327ad8f.tar.gz
CMake-22f1c78677f3a764d533b13d47538a07d327ad8f.tar.bz2
BUG: Fix spaces in file paths for lupdate command
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt4.cmake5
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}