1
0
mirror of synced 2024-11-05 04:28:54 +01:00

Fix typo with arguments

This commit is contained in:
Henry Fredrick Schreiner 2018-04-11 10:42:10 +02:00
parent 2824da034f
commit 039db8f484

View File

@ -83,7 +83,7 @@ simple(This)
message("Output: ${This}")
```
If you want positional arguments, they are listed explicitly, and all other arguments are collected in `ARGV`. You have to work around the fact that CMake does not have return values by setting variables. In the example above, you can explicitly give a variable name to set.
If you want positional arguments, they are listed explicitly, and all other arguments are collected in `ARGN` (`ARGV` holds all arguments, even the ones you list). You have to work around the fact that CMake does not have return values by setting variables. In the example above, you can explicitly give a variable name to set.
## Arguments
@ -96,6 +96,7 @@ cmake_parse_arguments(
"SINGLE;ANOTHER"
"ONE_VALUE;ALSO_ONE_VALUE"
"MULTI_VALUES"
${ARGN}
)
endfunction()