[cmake-developers] [PATCH] Automoc documentation is misleading

Alex Merry kde at randomguy3.me.uk
Mon Feb 3 18:13:33 EST 2014


The automoc documentation
(http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:AUTOMOC)
states that "all header files" are considered for automoc, which is not
true for any sensible definition of "all header files".

Only header files with certain names are considered: specifically, if
you have a C++ file like <file>.cpp attached to the target, header files
like <file>.h and <file>_p.h will be considered.

If you have a header file like foo.h and the corresponding source file
is, say, foo_win.cpp, automoc will never look at foo.h.

The attached patch makes the documentation clear on this point.

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Be-clearer-about-which-header-files-are-considered-f.patch
Type: text/x-patch
Size: 2347 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140203/13bf4600/attachment.bin>


More information about the cmake-developers mailing list