From 6496c51c95d414046e45d162fb09496370dbac03 Mon Sep 17 00:00:00 2001 From: Markus Reitboeck Date: Mon, 7 May 2018 22:52:37 +0200 Subject: [PATCH] do not strip spaces from cmake discovered test names this fixes #1265 --- contrib/CatchAddTests.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/CatchAddTests.cmake b/contrib/CatchAddTests.cmake index c68921e4..07856130 100644 --- a/contrib/CatchAddTests.cmake +++ b/contrib/CatchAddTests.cmake @@ -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}"