[cmake-developers] [PATCH] Proposal of fix for issue #12873 (AUTOMOC produces same output moc file if target has two source files resides in different sub-directory)

Mariusz Pluciński plucinski.mariusz at gmail.com
Sat Feb 13 06:08:25 EST 2016


Hello, CMake developers,

I would like to propose a fix for an issue
http://public.kitware.com/Bug/view.php?id=12873 (AUTOMOC produces same
output moc file if target has two source files resides in different
sub-directory). Proposed patch modifies names of generated moc_*.cpp files
to make them unique across the project, by inserting also the names of the
directories where the header is located.

Part of the patch is also the change in test QtAutogen that verifies the
fix.

Best Regards
Mariusz Plucinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160213/9e72d721/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-support-of-files-with-the-same-name-in-Automoc-1.patch
Type: application/octet-stream
Size: 4347 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160213/9e72d721/attachment.obj>


More information about the cmake-developers mailing list