Author Topic: BUG? Custom builds run even if the produced file is newer than source  (Read 3816 times)

Offline chameleon

  • Multiple posting newcomer
  • *
  • Posts: 39
Every time I press BUILD in my project, all of files which need custom build are rebuild even if produced files are newer than source.

- I have a custom build rule for UI files in my project. Even if I not change UI file, it will be build

- Custom build rule for file QTMAINWINDOW.H was executed every time I press BUILD. Even if produced file MOC_QTMAINWINDOW.CPP is newer than QTMAINWINDOW.H.


Codeblocks 27 Feb 2010

[attachment deleted by admin]

Offline chameleon

  • Multiple posting newcomer
  • *
  • Posts: 39
Dump bug report.

Custom build rule for file QTMAINWINDOW.H produces file MOC_QTMAINWINDOW.CPP

Yes, but CodeBlocks know nothing about produced file.

So, the problem exists, but more specific now:

When we have custom build for a file, and there is a produced file from this build, then somewhere in CodeBlocks we must define the name of produced file. So, the CodeBlocks when try to build the file, to check first if produced file exists and it is newer than source.