mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
94c1e4fdb3
Also rename the `INVOKE` signature to `CALL`. Fixes: #20732
13 lines
259 B
CMake
13 lines
259 B
CMake
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")
|