[cmake-developers] Build failed in Jenkins: kdelibs_frameworks_qt5 #1806

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Tue Dec 3 09:44:18 EST 2013


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



More information about the cmake-developers mailing list