[Qt-interest] QMake dependency issue

Stephan Rose kermos at somrek.net
Tue Sep 22 16:08:23 CEST 2009


I have a project that consists of an executable and a statically linked
library.

Both the library and executable obviously have their own pro file, and
are included in a global subdirs pro file.

The project is built in the proper order, library is built before
executable. So far so good.

However, if I now make a change to the library but make no change to the
executable, it is not relinked. This means I have to do a complete
rebuild from scratch everytime to get it to link again.

Is there any way to add the library as a dependency in such a way that
it is linked again when changes are made to it?

Thanks,

Stephan





More information about the Qt-interest-old mailing list