From de3a208e167c6baee6e8dc46f2c0466b311324c2 Mon Sep 17 00:00:00 2001 From: Karthik Nishanth <55433069+knzivid@users.noreply.github.com> Date: Fri, 31 Jul 2020 08:24:44 +0200 Subject: [PATCH] Update ParseAndAddCatchTests.cmake --- contrib/ParseAndAddCatchTests.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ParseAndAddCatchTests.cmake b/contrib/ParseAndAddCatchTests.cmake index 80a39938..5e89cb76 100644 --- a/contrib/ParseAndAddCatchTests.cmake +++ b/contrib/ParseAndAddCatchTests.cmake @@ -190,8 +190,8 @@ function(ParseAndAddCatchTests_ParseFile SourceFile TestTarget) string(REPLACE "," "\\," Name ${Name}) # Work around CMake 3.18.0 change in `add_test()`, before the escaped quotes were neccessary, - # beginning with CMake 3.18.0 the escaped double quotes confuse the call - if(${CMAKE_VERSION} VERSION_LESS "3.18") + # only with CMake 3.18.0 the escaped double quotes confuse the call. This change is reverted in 3.18.1 + if(NOT ${CMAKE_VERSION} VERSION_EQUAL "3.18") set(CTestName "\"${CTestName}\"") endif() # Add the test and set its properties