Version: unspecified (using Devel) OS: Linux The files in the ${_uncritial_common_sources} variable from kmymoney/widgets/CMakeLists.txt are compiled 3 times (twice when KMM_DESIGNER is not set). libkmymoney_base.a is built from ${_uncritial_common_sources}. kmymoneywidgets.so and libwidgets.a both depend on libkmymoney_base.a, but also have ${_uncritial_common_sources} as sources. Moreover automoc was called with the same source files for each of these targets in the same building directory, but with different _automoc.cpp files => the moc files were regenerated. The files were recompiled for the earlier targets the next time "make" was run. This problem still occurs for the ${critial_common_sources}. Reproducible: Always
Created attachment 48098 [details] Suggested patch
Can you submit this through reviewboard.kde.org? It will be easier to follow, since there are multiple involved on the build system. Thanks for your contribution, once again!
Sure, I've prepared it: http://reviewboard.kde.org/r/4379/ It's a draft, I can't publish it until I assign it to someone but I couldn't find your account ou ipwizard's on reviewboard.
My account is asoliverez, and the group is kmymoney. Assigning it to the group should do the trick.
SVN commit 1139531 by tbaumgart: - Remove useless library dependencies - Remove ${_uncritial_common_sources} from kmymoneywidgets.so and libwidgets.a. They are both linked to libkmymoney_base.a, which is built from ${_uncritial_common_sources}. => the ${_uncritial_common_sources} files were built 3 times. BUG: 242044 M +1 -1 CMakeLists.txt M +7 -9 widgets/CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1139531