[CMake] Re: Calling a dynamically created macro

David Cole david.cole at kitware.com
Wed Dec 19 19:05:28 EST 2007


Now this thread is just plain cool.

:-)

On 12/19/07, Brandon Van Every <bvanevery at gmail.com> wrote:
>
> On Dec 19, 2007 6:04 PM, Brandon Van Every <bvanevery at gmail.com> wrote:
> > On Dec 19, 2007 12:47 PM, Rodolfo Schulz de Lima <rodolfo at rodsoft.org>
> wrote:
> > > Brandon Van Every escreveu:
> > >
> > > > You could use a macro to generate a CMake script containing a macro,
> > > > and then call that script.  :-)
> > >
> > > Nice... :)
> >
> > In fact, it turns out you can use an include() to cause it to exist at
> > the point you create the macro.  A downside is the number of escapes
> > you have to put into your meta-macro, such as \\\${myvar}.
>
> If you don't need to invent arbitrarily complicated macros on the fly,
> but just want to substitute some hardcoded values like the macro name,
> running configure_file on a "template" macro file might be more
> convenient.  You wouldn't need funky escapes in a pre-written template
> macro file.
>
>
> Cheers,
> Brandon Van Every
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071219/438d1c65/attachment.html


More information about the CMake mailing list