Skip to content

Commit 30b9aa6

Browse files
authored
Merge pull request #147 from SqliteModernCpp/fix-tests
Fix CatchAddTests.cmake for tests with spaces
2 parents 8388219 + 9e4bf27 commit 30b9aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CatchAddTests.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ string(REPLACE "\n" ";" output "${output}")
5151
# Parse output
5252
foreach(line ${output})
5353
# Test name; strip spaces to get just the name...
54-
string(REGEX REPLACE " +" "" test "${line}")
54+
string(REGEX REPLACE "^ +" "" test "${line}")
5555
# ...and add to script
5656
add_command(add_test
5757
"${prefix}${test}${suffix}"

0 commit comments

Comments
 (0)