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: [email protected]
> > Subject: Re: [CMake] Using Macro function like
> >
> > 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 MACRO docs for
> > ARGC, ARGV, and ARGN.
>
> 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 elements.  That's why I thought you wanted a varargs
interface.


Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to