cmake problem: dependencies are not updated until make is re-run
William A. Hoffman
billlist at nycap.rr.com
Wed Jun 7 17:13:28 CEST 2006
At 10:26 AM 6/7/2006, David Faure wrote:
>On Monday 22 May 2006 10:34, David Faure wrote:
>> I have seen this problem multiple times, but I'm not sure something can be done about it...
>> Basically the first time "make" is run, if it triggers a cmake run, then the new dependencies
>> are not taken into account. They are only when running make again.
>BTW I'm seeing the same when a header file is moved.
What was the full command for make given at this point?
>make: *** No rule to make target `/d/kde/src/4/kdelibs/kutils/kplugininfo.h', needed by `kutils/CMakeFiles/kutils.dir/kpluginselector.o'. Stop.
>make: *** [kutils/CMakeFiles/kutils.dir/all] Error 2
>make: *** [all] Error 2
>makeobj: Leaving directory `/d/kde/build/4/kdelibs'
>-obelix- dfaure 16:06 /d/kde/build/4/kdelibs>cd kutils
>-obelix- dfaure 16:21 /d/kde/build/4/kdelibs/kutils>make
>makeobj: Entering directory `/d/kde/build/4/kdelibs/kutils'
>Dependee "/d/kde/src/4/kdelibs/kutils/kplugininfo.h" does not exist for depender
This is what should happen, and does happen when I have a small test case.
It seems like the first run of cmake is not running the cmake --check-build-system
for some reason.
>kplugininfo.h was moved to another directory that's in the include path, so kpluginselector.cpp should
>still compile. But the first time I do make after moving the file, the error on the first line happens.
>Bug or feature?
This is a bug.
More information about the Kde-buildsystem