do not strip spaces from cmake discovered test names

this fixes #1265
This commit is contained in:
Markus Reitboeck 2018-05-07 22:52:37 +02:00 committed by Martin Hořeňovský
parent 3dd523bdf5
commit 6496c51c95

View File

@ -50,8 +50,7 @@ string(REPLACE "\n" ";" output "${output}")
# Parse output
foreach(line ${output})
# Test name; strip spaces to get just the name...
string(REGEX REPLACE " +" "" test "${line}")
set(test ${line})
# ...and add to script
add_command(add_test
"${prefix}${test}${suffix}"