Am 05.10.2010 um 11:55 schrieb Kornel Benko: > Am Dienstag, 5. Oktober 2010 schrieb Stephan Witt: >> The 2nd build fails. But it should have failed on the 1st run too. >> > Not on linux. Here it fails in 1st run of make.
Of course. I could guess it from your first message already. But the mechanism of dependency tracking seems to be fundamentally different. Or the generated dependencies are not complete. After calling uic: On Linux: /usr/bin/cmake -E cmake_depends ... On Mac: make -f .../CMakeScripts/XCODE_DEPEND_HELPER.make ... The file XCODE_DEPEND_HELPER.make in lyx-build/lyx-cmake/src/frontends/qt4/CMakeScripts: ============================ # DO NOT EDIT # This makefile makes sure all linkable targets are # up-to-date with anything they link to, avoiding a bug in XCode 1.5 all.Debug: all.Release: all.MinSizeRel: all.RelWithDebInfo: # For each target create a dummy rule so the target does not have to exist # Rules to remove targets that are older than anything to which they # link. This forces Xcode to relink the targets from scratch. It # does not seem to check these dependencies itself. ============================ This is obviously not enough. The Qt4 frontends Makefile is frontend_qt4_cmakeRulesBuildPhase.makeDebug: ============================ all: \ .../moc_Action.cpp\ ... .../ui_PrefPrinterUi.h\ ... .../ui_PrefPrinterUi.h: \ .../PrefPrinterUi.ui uic -tr lyx::qt_ ... ... ============================ There is no dependency like .../GuiPrefs.o: \ .../ui_PrefPrinterUi.h \ ... Perhaps, the generated Makefiles are simply incomplete on Mac. Stephan