mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
fixed inconsistent semicolon expansion in catch_discover_tests (Bug #2214)
This commit is contained in:
parent
469a717395
commit
86a4d704bc
@ -16,7 +16,10 @@ set(tests)
|
|||||||
|
|
||||||
function(add_command NAME)
|
function(add_command NAME)
|
||||||
set(_args "")
|
set(_args "")
|
||||||
foreach(_arg ${ARGN})
|
# use ARGV* instead of ARGN, because ARGN splits arrays into multiple arguments
|
||||||
|
math(EXPR _last_arg ${ARGC}-1)
|
||||||
|
foreach(_n RANGE 1 ${_last_arg})
|
||||||
|
set(_arg "${ARGV${_n}}")
|
||||||
if(_arg MATCHES "[^-./:a-zA-Z0-9_]")
|
if(_arg MATCHES "[^-./:a-zA-Z0-9_]")
|
||||||
set(_args "${_args} [==[${_arg}]==]") # form a bracket_argument
|
set(_args "${_args} [==[${_arg}]==]") # form a bracket_argument
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user