Am Donnerstag, den 12.05.2011, 17:10 +0200 schrieb Michael Wild:
> I agree, that this behaviour is due the fact that the parameter name
> "var" hides the parent-scope variable "var", but then ${${var}} should
> IMHO result in an error or warning message. Essentially, what this does
> inside the function is
> 
> set(var var)
> 
> which is hardly ever what is intended. 

Okay, now I understand it.

Thanks very much to all of you!

Micha


_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake

Reply via email to