Re: [CMake] How to define a global scope variable ?

2009-06-23 Thread Tyler Roscoe
On Mon, Jun 22, 2009 at 09:13:17PM -0700, Andy Lego wrote: set(global_name value CACHE INTERNAL FORCE) I've also heard some people use environment variables (they don't persist beyond CMake IIRC) -- set (ENV{global_name} value). tyler ___ Powered by

Re: [CMake] How to define a global scope variable ?

2009-06-23 Thread Alexander Neundorf
On Tuesday 23 June 2009, Xiangyun Kong wrote: How could I define a global scoped variable in CMAKE, so that I could use something like, set (global_name ${global_name} {files}) to collect all files in each sub-catogory recursively ? It seems I could only use PARENT_SCOPE to make the

Re: [CMake] How to define a global scope variable ?

2009-06-22 Thread Andy Lego
Hi, set(global_name value CACHE INTERNAL FORCE) Andy On Mon, Jun 22, 2009 at 6:35 PM, Xiangyun Kong xyk...@yahoo.com wrote: How could I define a global scoped variable in CMAKE, so that I could use something like, set (global_name ${global_name} {files}) to collect all files in each