diff options
author | Brad King <brad.king@kitware.com> | 2022-01-07 15:23:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-01-07 15:23:54 (GMT) |
commit | b996e576c24c67702c458d16c76a916732ddf024 (patch) | |
tree | 2acaf3e072b42dcc029cdf52f7be43befc4f105d /Modules | |
parent | 7b1099a52fe78fa1a54a326e053aaf058688d00b (diff) | |
parent | 1f9554d4e95087a63b3ab8279cfbda6c3b25004d (diff) | |
download | CMake-b996e576c24c67702c458d16c76a916732ddf024.zip CMake-b996e576c24c67702c458d16c76a916732ddf024.tar.gz CMake-b996e576c24c67702c458d16c76a916732ddf024.tar.bz2 |
Merge topic 'GoogleTest-dots'
1f9554d4e9 GoogleTest: Fix regex matching all dots in the suite name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6822
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/GoogleTestAddTests.cmake | 2 |
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() |