On Thursday 14 November 2013, Daniele E. Domenichelli wrote:
> Hello,
> 
> When calling a macro, the variables can be dereferenced but they are not
> DEFINED, and the list() command fails in several way (please have a look
> at the attached test for more details)
> 
> Is this a wanted behaviour? 

Basically, yes.
The arguments of macro invocations are no variables, it's a real macro, they 
are replaced with the actual arguments.
So whenever a command inside the macro refers to the variable "_bar", it fails 
(or it sees a _bar which might happen to exist in the "calling" scope).

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to