blob: 20608ae17c0708579f5028d539ea59aa77d8cb70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
include(CTest)
set(cmp_args "1ARG=COMMAND_EXPAND_LISTS" "2ARG=test" "3ARG=outfile"
"4ARG=content")
set(AARGS "")
foreach(arg IN LISTS cmp_args)
list(APPEND AARGS "-DA${arg}")
endforeach()
add_test(
NAME CommandExpandList
COMMAND ${CMAKE_COMMAND} ${AARGS} -V
"-DB$<JOIN:${cmp_args},;-DB>"
"-P" "${CMAKE_CURRENT_LIST_DIR}/compare_options.cmake"
COMMAND_EXPAND_LISTS
)
|