mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-23 05:46:11 +01:00
Update ParseAndAddCatchTests.cmake
This commit is contained in:
parent
229cc4823c
commit
de3a208e16
@ -190,8 +190,8 @@ function(ParseAndAddCatchTests_ParseFile SourceFile TestTarget)
|
|||||||
string(REPLACE "," "\\," Name ${Name})
|
string(REPLACE "," "\\," Name ${Name})
|
||||||
|
|
||||||
# Work around CMake 3.18.0 change in `add_test()`, before the escaped quotes were neccessary,
|
# 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
|
# only with CMake 3.18.0 the escaped double quotes confuse the call. This change is reverted in 3.18.1
|
||||||
if(${CMAKE_VERSION} VERSION_LESS "3.18")
|
if(NOT ${CMAKE_VERSION} VERSION_EQUAL "3.18")
|
||||||
set(CTestName "\"${CTestName}\"")
|
set(CTestName "\"${CTestName}\"")
|
||||||
endif()
|
endif()
|
||||||
# Add the test and set its properties
|
# Add the test and set its properties
|
||||||
|
Loading…
Reference in New Issue
Block a user