[QBS] How to resolve dependencies on generated header files

Joerg Bornemann joerg.bornemann at digia.com
Thu Aug 7 15:51:53 CEST 2014

On 07-Aug-14 15:14, Richard Weickelt wrote:

> Eureka! Thank You for explaining. I think, my problem is located in the
> definition of 'dependency' which seems to have a rather temporal meaning.
> Let me repeat in my own words what You have said: If foo.cpp includes foo.h,
> QBS detects a *dependency* between them through its built-in cpp-scanner.
> Dependency means: if foo.h is generated by a rule, QBS ensures, that foo.h
> is generated *before* foo.cpp is compiled. It does *not* add the output
> folder of foo.h to the includePath of foo.cpp. The latter is what I have
> expected and where the confusion comes from.
> Is this correct?

That's correct. :)



More information about the Qbs mailing list