[cmake-developers] Automoc same source name fix (proposal)
Sebastian Holtermann
seblist at xwmw.org
Tue Apr 12 05:57:41 EDT 2016
Hi,
I've stumbled over bug
https://cmake.org/Bug/view.php?id=12873
a few times now since I like to use same named data/view classes.
I've prepared a fix that generates all moc_xxx.cpp files
in the foo_automoc.dir subdirectory.
For the attached test case you end up with
foo_automoc.cpp -- As before but includes sources below
foo_automoc.dir/data/moc_item.cpp
foo_automoc.dir/view/moc_item.cpp
foo_automoc.dir/item.cpp
This solves the same output moc problem.
What remains though is that including "moc_foo.cpp"
does not work because of missing INCLUDE_DIRECTORIES.
Kind regards,
Sebastian Holtermann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_automoc_directory_fix-2016-04-12-1.patch
Type: text/x-patch
Size: 8651 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160412/bd374474/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_automoc_test-2016-04-12-1.tar.gz
Type: application/gzip
Size: 919 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160412/bd374474/attachment-0001.bin>
More information about the cmake-developers
mailing list