[Interest] Automatic relink of executable after change in dependant static library

Joerg Bornemann joerg.bornemann at qt.io
Mon Jun 19 10:30:31 CEST 2017


On 16/06/2017 22:36, Enmaniac Software wrote:

> Ah indeed. It worked!
> 
> To recap: I have added the following to MyApp PRO file:
> PRE_TARGETDEPS += $$PWD/../staticlib/debug/staticlib.lib
> 
> It’s a bit pity that PRE_TARGETDEPS takes the absolute path to the file rather than simply the target name (thus resolving the path on its own depending on OS and naming conventions)

Exactly. For cross-platform projects this is a big pain point of qmake.

You've already got recommendations for "bigger hammers", but I recommend 
to have a look at qbs where this particular case of dependency tracking 
works out of the box.


Cheers,

Joerg



More information about the Interest mailing list