cmake_command: Does not preserve quoted arguments
The command added by !4286 (merged) expands lists in quoted arguments:
$ cat test.cmake
function(foo arg1 arg2)
math(EXPR last "${ARGC} - 1")
foreach(i RANGE 0 ${last})
message(STATUS "[${ARGV${i}}]")
endforeach()
endfunction()
message(STATUS "foo(...)")
foo("a;b" "c;d")
message(STATUS "cmake_command(INVOKE foo ...)")
cmake_command(INVOKE foo "a;b" "c;d")
$ cmake -P test.cmake
-- foo(...)
-- [a;b]
-- [c;d]
-- cmake_command(INVOKE foo ...)
-- [a]
-- [b]
-- [c]
-- [d]
The quoting status of the individual arguments should be preserved when invoking the named command.