On Dec 3, 2007 5:41 AM, <[EMAIL PROTECTED]> wrote:
>
> I invoke the macro by calling it with C2ADA(${LIST_OF_FILES} ADS).
>
> Is there a possibilty to do what I want by using another command?
You want variable arguments. Look in the MACRO docs for ARGC, ARGV, and ARGN.
Cheers,
Brandon Van Ever
Hi,
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Andreas Pakulat
> Sent: Monday, December 03, 2007 11:52 AM
> To: cmake@cmake.org
> Subject: Re: [CMake] Using Macro function like
>
> On 03.12.07 05:47:29, Bran
On 03.12.07 05:47:29, Brandon Van Every wrote:
> On Dec 3, 2007 5:41 AM, <[EMAIL PROTECTED]> wrote:
> >
> > I invoke the macro by calling it with C2ADA(${LIST_OF_FILES} ADS).
> >
> > Is there a possibilty to do what I want by using another command?
>
> You want variable arguments. Look in the MA
On 03.12.07 11:57:42, [EMAIL PROTECTED] wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > ] On Behalf Of Andreas Pakulat
> > Sent: Monday, December 03, 2007 11:52 AM
> > To: cmake@cmake.org
> > Subj
On Dec 3, 2007 5:57 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > ] On Behalf Of Andreas Pakulat
> > Sent: Monday, December 03, 2007 11:52 AM
> > To: c
> C2ADA(${LIST_OF_FILES} ADS)
You want
C2ASA("${LIST_OF_FILES}" ADS)
then your macro will receive two arguments, the first of which is a list.
Teh in yoru macro you can use foreach to traverse the first argument. VTK
uses this approach for the wrap tcl macro.
Ken
__
Nope I want to have only two arguments. One for my list and one for the option.
If that's what you want, then you're calling your macro incorrectly. You want
C2ADA(LIST_OF_FILES ADS)
not
C2ADA(${LIST_OF_FILES} ADS)
in the latter case you have expanded your list into all of its
constituent eleme