Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Properly unset tags variable.

Commit
76790604f523f7fb63741aca5fc7fc1cbc140763
Author
Guillaume Egles ·
Committer
Martin Hořeňovský
Parents
e21c6aa94d95

Files · Download .tar.gz

Changes

 contrib/ParseAndAddCatchTests.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/ParseAndAddCatchTests.cmake b/contrib/ParseAndAddCatchTests.cmake
index cb2846d0..85c06a0d 100644
--- a/contrib/ParseAndAddCatchTests.cmake
+++ b/contrib/ParseAndAddCatchTests.cmake
@@ -143,6 +143,9 @@ function(ParseFile SourceFile TestTarget)
             endif()
             string(REPLACE "]" ";" Tags "${Tags}")
             string(REPLACE "[" "" Tags "${Tags}")
+        else()
+          # unset tags variable from previous loop
+          unset(Tags)
         endif()
 
         list(APPEND Labels ${Tags})