Miguel A. Figueroa-Villanueva wrote:
> On Dec 7, 2007 6:42 PM, Filipe Sousa wrote:
> 
> Try the following:
> 
>  function(foo x)
>   set(${x} 1)                     # changed here
>   raise_scope(${x})
>  endfunction()
> 
>  foo(y)
>  message(STATUS "y=${y}")
> 
> I have this working. What gives me problems is calling foo(x), since x
> is the same name as the function argument. So unless this is fixed, I
> suggest you use names for function arguments that are not likely to be
> used themselves as the name of the variable to be passed to the
> function. That is, I would do: function(foo _x). Or something like
> that.
> 
> Hope this helps.

Yes it works, thanks!

-- Filipe Sousa

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to