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 # Parse output
foreach(line ${output}) foreach(line ${output})
# Test name; strip spaces to get just the name... set(test ${line})
string(REGEX REPLACE " +" "" test "${line}")
# ...and add to script # ...and add to script
add_command(add_test add_command(add_test
"${prefix}${test}${suffix}" "${prefix}${test}${suffix}"