[CMake] exporting variables upwards

Alexander Neundorf a.neundorf-work at gmx.net
Mon May 12 04:57:23 EDT 2008


On Monday 12 May 2008, Reinhold wrote:
> Hi Mattias,
>
> AFAIK there are 2 possibilities:
> (a) Using PARENT_SCOPE flag in SET of variable definition
> (b) Using GLOBAL scope for properties, cf. DEFINE_PROPERTY,
> GET_PROPERTY, SET_PROPERTY

These both require cmake 2.6.

With cmake 2.4 you could FORCE a variable into the cache.

Alex


More information about the CMake mailing list