[cmake-developers] Automoc same source name fix (proposal)

Sebastian Holtermann seblist at xwmw.org
Tue Apr 12 07:43:29 EDT 2016


Sorry for the noise.

> 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.

Here is an improved patch that calculates header relative paths
in the following parent directory lookup order
- CMAKE_CURRENT_SOURCE_DIR
- CMAKE_CURRENT_BINARY_DIR
- CMAKE_SOURCE_DIR
- CMAKE_BINARY_DIR

Also std::cout debugging was removed ;)

Kind regards,
Sebastian Holtermann


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_automoc_directory_fix-2016-04-12-2.patch
Type: text/x-patch
Size: 9050 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160412/a1552e9f/attachment-0001.bin>


More information about the cmake-developers mailing list