[CMake] exporting variables upwards

Phil Pellouchoud Phil at slacker.com
Wed May 14 03:30:29 EDT 2008


One other way is to shove the variable into an environment variable. 

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Alexander Neundorf
Sent: Monday, May 12, 2008 1:57 AM
To: cmake at cmake.org
Subject: Re: [CMake] exporting variables upwards

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
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list