On 02/12/13 22:57, Brad King wrote:
> The function() and macro() commands rename any existing command
> of the same name to one with a leading underscore.  This was added
> long ago for use as local debugging and never really finished.
> It is not documented behavior.


Thanks! This actually explains a lot of things, including some weird
tricks that I've seen being used in the past...

I suggest at least to add some documentation to macro() and function()
commands, in order to document this behaviour.

I've updated the topic and merged to next again, including both fixes
(use if(COMMAND) instead of a local variable as header guard, and rename
the internal method)


Cheers,
 Daniele
--

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