Re: [CMake] lexical scoping ... back to the future !

2012-02-24 Thread aaron . meadows
n-Robin; cmake@cmake.org Subject: Re: [CMake] lexical scoping ... back to the future ! >>> On 23/02/2012 02:00, Jean-Christophe Fillion-Robin wrote: > Hi François, > > Would the use of function be helpful ? > > See > http://www.cmake.org/cmake/help/cmake-

Re: [CMake] lexical scoping ... back to the future !

2012-02-23 Thread François Mauger
>>> On 23/02/2012 02:00, Jean-Christophe Fillion-Robin wrote: Hi François, Would the use of function be helpful ? See http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:function and http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set "If PARENT_SCOPE is present, the variab

Re: [CMake] lexical scoping ... back to the future !

2012-02-22 Thread Jean-Christophe Fillion-Robin
Hi François, Would the use of function be helpful ? See http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:function and http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set "If PARENT_SCOPE is present, the variable will be set in the scope above the current scope. Each new di

[CMake] lexical scoping ... back to the future !

2012-02-22 Thread François Mauger
Hi CMakers, In november 2007, there was a long thread titled "lexical scoping". The discussion was really interesting and was suggesting that some "local scoping" features for variables could be implemented in CMake... particularly from macros, which are probably the practical case that causes m