[Qt-interest] qmake circular dependency issue

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Mon Jun 7 07:35:37 CEST 2010


Reposting my original problem with new subject. Hope to get some
attention now that the weekend is over! :) (at least in most parts of
the world!)

Brief desc:
* I have a project with libB and an appA.
* libB has 2 targets:
1) the default/all which builds the lib
2) an install target which installs the headers/built lib in a known
place inside my project.
* appA accesses the lib headers from this known location.
* For appA to compile properly, I need that the install target should
have run on libB before.

A more detailed desc is in my previous thread with subject:
"problem using qmake to build libs and apps in a project (make target
dependency issue)"

I need to to do all the above in a single "make" step.

Right now I have managed to do something similar by putting "install"
in POST_TARGETDEPS. But this causes make to throw a warning because it
detects a circular dependency (since 'install' depends on 'all' and
now 'all' depends on 'install').

Is there a cleaner way out of this?

Thanks,
-mandeep



More information about the Qt-interest-old mailing list