You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
385 B

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
)