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.
13 lines
259 B
13 lines
259 B
4 years ago
|
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")
|