mirror of
https://github.com/catchorg/Catch2.git
synced 2025-04-28 19:53:52 +00:00
Compare commits
2 Commits
e8cdfdca87
...
2dc5a5f402
Author | SHA1 | Date | |
---|---|---|---|
|
2dc5a5f402 | ||
|
04166514fe |
@ -4,6 +4,8 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
# disable testsuite in that case
|
# disable testsuite in that case
|
||||||
if(NOT DEFINED PROJECT_NAME)
|
if(NOT DEFINED PROJECT_NAME)
|
||||||
set(NOT_SUBPROJECT ON)
|
set(NOT_SUBPROJECT ON)
|
||||||
|
else()
|
||||||
|
set(NOT_SUBPROJECT OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(CATCH_INSTALL_DOCS "Install documentation alongside library" ON)
|
option(CATCH_INSTALL_DOCS "Install documentation alongside library" ON)
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user