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.
cmake/Tests/RunCMake/cmake_language/call_preserve_arguments.cmake

13 lines
259 B

function(foo arg1 arg2)
math(EXPR last "${ARGC} - 1")
foreach(i RANGE 0 ${last})
message("[${ARGV${i}}]")
endforeach()
endfunction()
message("foo(...)")
foo("a;b" "c;d")
message("cmake_language(CALL foo ...)")
cmake_language(CALL foo "a;b" "c;d")