-RM-79-MR-Strange CMake build dependency with WKernel target (often recompiles)
The target WKernel.cpp is compiled even though it was not changed nor any other source file was changed! Reproducing is some kind difficult, I edited two files, saved them compiled and (even then WKernel was issued to recompile) when all was build I (kept my editor open) wait for one hour or so, and just for the reason of completeness I reissued make and this happend:
0#9:17:03#math@ipansen# OpenWalnut/build/debug >make -j2 unittest_WTerminalColor && ./bin/unittest_WTerminalColor [ 0%] [ 0%] Copy fixtures of openwalnut from /Users/math/repos/OpenWalnut/src/core/common/test/fixtures to /Users/math/repos/OpenWalnut/build/debug/core/fixtures/. Creating Version Header /Users/math/repos/OpenWalnut/build/debug/versionHeader/WVersion.h. [ 0%] Built target openwalnut_CopyFixtures_srcXcoreXcommonXtestXfixtures [ 0%] Copy fixtures of openwalnut from /Users/math/repos/OpenWalnut/src/core/dataHandler/test/fixtures to /Users/math/repos/OpenWalnut/build/debug/core/fixtures/. [ 0%] Built target openwalnut_CopyFixtures_srcXcoreXdataHandlerXtestXfixtures [ 0%] Built target OW_generate_version_header Scanning dependencies of target openwalnut [ 0%] Building CXX object core/CMakeFiles/openwalnut.dir/kernel/WKernel.cpp.o Linking CXX shared library ../lib/libopenwalnut.dylib [100%] Built target openwalnut Linking CXX executable ../bin/unittest_WTerminalColor [100%] Built target unittest_WTerminalColor Running 4 tests....OK! 0#10:15:37#math@ipansen# OpenWalnut/build/debug >
I noticed that WKernel is very often compiled new, but I touch it very very seldom!
(from redmine: created on 2011-09-21, closed on 2011-11-17)