Fix failing test. Forgot to double quote last arg to STRING.

This commit is contained in:
David Cole 2009-10-20 15:18:45 -04:00
parent e1458ae4ab
commit 8d94703cc2
1 changed files with 3 additions and 3 deletions

View File

@ -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}")