summaryrefslogtreecommitdiffstats
path: root/Tests/CPackTestAllGenerators/RunCPack.cmake
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-10-20 19:18:45 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-10-20 19:18:45 (GMT)
commit8d94703cc2532ea51aef5101462e90ac61e04994 (patch)
tree8680c8aeb3e70d2fd49633b6ef85e12ecbbd914a /Tests/CPackTestAllGenerators/RunCPack.cmake
parente1458ae4ab97a4ac668fd9153c6624e9e0e526b5 (diff)
downloadCMake-8d94703cc2532ea51aef5101462e90ac61e04994.zip
CMake-8d94703cc2532ea51aef5101462e90ac61e04994.tar.gz
CMake-8d94703cc2532ea51aef5101462e90ac61e04994.tar.bz2
Fix failing test. Forgot to double quote last arg to STRING.
Diffstat (limited to 'Tests/CPackTestAllGenerators/RunCPack.cmake')
-rw-r--r--Tests/CPackTestAllGenerators/RunCPack.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CPackTestAllGenerators/RunCPack.cmake b/Tests/CPackTestAllGenerators/RunCPack.cmake
index eb33ff4..e0c241e 100644
--- a/Tests/CPackTestAllGenerators/RunCPack.cmake
+++ b/Tests/CPackTestAllGenerators/RunCPack.cmake
@@ -14,13 +14,13 @@ execute_process(COMMAND ${cpack} --help
ERROR_VARIABLE stderr
WORKING_DIRECTORY ${dir})
-string(REPLACE ";" "\\;" stdout ${stdout})
-string(REPLACE "\n" "E;" stdout ${stdout})
+string(REPLACE ";" "\\;" stdout "${stdout}")
+string(REPLACE "\n" "E;" stdout "${stdout}")
set(collecting 0)
set(generators)
foreach(eline ${stdout})
- string(REGEX REPLACE "^(.*)E$" "\\1" line ${eline})
+ string(REGEX REPLACE "^(.*)E$" "\\1" line "${eline}")
if(collecting AND NOT line STREQUAL "")
string(REGEX REPLACE "^ ([^ ]+) += (.*)$" "\\1" gen "${line}")
string(REGEX REPLACE "^ ([^ ]+) += (.*)$" "\\2" doc "${line}")