summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFrancesco Guastella <francesco.guastella@bisimulations.com>2021-12-20 17:35:09 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-07 14:25:57 (GMT)
commit1f9554d4e95087a63b3ab8279cfbda6c3b25004d (patch)
treeedebf6852b6b9a3bc82354167f38b0d6667e7c17 /Modules
parent353318cc53b87f647141e8d12e79bd4b20be489b (diff)
downloadCMake-1f9554d4e95087a63b3ab8279cfbda6c3b25004d.zip
CMake-1f9554d4e95087a63b3ab8279cfbda6c3b25004d.tar.gz
CMake-1f9554d4e95087a63b3ab8279cfbda6c3b25004d.tar.bz2
GoogleTest: Fix regex matching all dots in the suite name
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GoogleTestAddTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake
index dffbc46..1283a3f 100644
--- a/Modules/GoogleTestAddTests.cmake
+++ b/Modules/GoogleTestAddTests.cmake
@@ -105,7 +105,7 @@ function(gtest_discover_tests_impl)
# Do we have a module name or a test name?
if(NOT line MATCHES "^ ")
# Module; remove trailing '.' to get just the name...
- string(REGEX REPLACE "\\.( *#.*)?" "" suite "${line}")
+ string(REGEX REPLACE "\\.( *#.*)?$" "" suite "${line}")
if(line MATCHES "#" AND NOT _NO_PRETTY_TYPES)
string(REGEX REPLACE "/[0-9]\\.+ +#.*= +" "/" pretty_suite "${line}")
else()