Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/extras
diff options
context:
space:
mode:
authorKarthik Nishanth2020-07-31 08:24:44 +0200
committerMartin Hořeňovský2020-09-07 13:00:55 +0200
commit2c1c02f7e7521ee28d2b931a42160915b4791049 (patch)
treed3fdea859f5acebcb74d72241b1e2485da254305 /extras
parent8851e779cf43e206c8eeb24229e26d8f6608e3cf (diff)
downloadcatch3-2c1c02f7e7521ee28d2b931a42160915b4791049.tar.gz
Update ParseAndAddCatchTests.cmake
Diffstat (limited to 'extras')
-rw-r--r--extras/ParseAndAddCatchTests.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/ParseAndAddCatchTests.cmake b/extras/ParseAndAddCatchTests.cmake
index 80a39938..5e89cb76 100644
--- a/extras/ParseAndAddCatchTests.cmake
+++ b/extras/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