[Cmake] How to use info->CAPI->AddDefinition ?

Andy Cedilnik andy . cedilnik at kitware . com
31 Oct 2003 08:21:58 -0500


Hi Jean,

The first one creates a cmake variable FOO with value bar.

			Andy

On Fri, 2003-10-31 at 05:58, Jean-Francois LECOMTE wrote:
> Hi there,
> 
> I'm writing a plugin for cmake and i 'm able to create it.
> 
> Everything seems ok, that means i can use it in CMakeLists.txt for my project.
> 
> In my static InitialPass method i write
> 
> info->CAPI->AddDefinition( mf, "FOO", "bar" );
> and
> info->CAPI->AddDefineFlag( mf, "-DTUTU");
> 
> the second gives me the expected  flag -DTUTU in my current Makefile, the first nothing....
> I really don't understand why.
> 
> Does anyone already face the same pb.
> Thanks...
> 
> Full code of my plugin is given as attachement