summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_language/call_preserve_arguments.cmake
blob: bfef0fda1bd2cd125a32738fdc33c3b4904fd72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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")