[CMake] Variable Propagation
Michael Hertling
mhertling at online.de
Sat Jun 12 23:53:22 EDT 2010
On 06/13/2010 02:57 AM, C. Meissa wrote:
> Hello list,
>
> A varible ${var1} can be accessed in any subdirectory’s
> CMakeLists.txt.
> However, if those files change ${var1} these changes are not
> accessible from the directory above.
>
> Is there any possibility of getting this done, anyway?
SET(var1 ${var1} PARENT_SCOPE)
> I need to provide easy adding for source files to the developers,
> So it would be nice to just have a CMakelists.txt in every subfolder,
> which then edits the source-variable.
Also consider to use properties for such a purpose.
Regards,
Michael
More information about the CMake
mailing list