1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-03-31 15:44:47 +02:00

Update ParseAndAddCatchTests.cmake

This commit is contained in:
Karthik Nishanth 2020-07-31 08:24:44 +02:00 committed by Martin Hořeňovský
parent 8851e779cf
commit 2c1c02f7e7
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

@ -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