[CMake] Default parameters in macros

Alexander Neundorf a.neundorf-work at gmx.net
Tue Nov 25 15:46:42 EST 2008


On Tuesday 25 November 2008, Robert Dailey wrote:
> Hi,
>
> Are all macro parameters optional by default? If not, how can I make them
> optional? I have a couple of required parameters and a few optional ones.
> Thanks.

You can use the ${ARGV} special variable in macros to iterate over all 
provided arguments.

Alex


More information about the CMake mailing list