From 76790604f523f7fb63741aca5fc7fc1cbc140763 Mon Sep 17 00:00:00 2001 From: Guillaume Egles Date: Mon, 9 Jul 2018 17:49:34 -0700 Subject: [PATCH] Properly unset tags variable. --- 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})