[CMake] Qt automoc (CMAKE_AUTOMOC) failure with name clashes

Roger Leigh rleigh at codelibre.net
Sun Dec 14 15:29:21 EST 2014


On Sun, Dec 14, 2014 at 07:29:38PM +0000, Roger Leigh wrote:
> Compilation inevitably fails due to it including the generated source
> files twice.  It's discarded the path information.
> 
> - is this a known issue?
> - is there any way to get automoc support to add the full pathname to
>   the generated sources e.g. moc_gl_Axis2D.cpp and moc_gl_v20_Axis2D.cpp.
> - any workarounds known for this issue?

Looks like this might be fixable in Source/cmQtAutoGenerators.cxx
where it's running moc and outputting the main file with the
includes in GenerateMoc and RunAutogen, if these were used to
generate the sources in subdirectories rather than only at the
toplevel?


-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


More information about the CMake mailing list