[Qbs] Applying cxxFlags to certain files
Christian Kandeler
christian.kandeler at qt.io
Fri Jul 10 14:22:57 CEST 2020
On Fri, 10 Jul 2020 16:42:51 +0500
Dan Pat <dannix84 at gmail.com> wrote:
> I have checked out the solution and discovered an inconvenience. As it
> stands, Artifacts are passed to the "cpp" module with flags set by the
> Product (and product imported Modules) in the context of which the
> Artifacts are built. But as soon as I set the Artifact specific
> "cpp.cxxFlags" , they seem to replace, instead of being appended to
> (desired behaviour), the Product-wise flags.
Right, list properties are overwritten, not appended to. Groups behave the same way.
> Can you suggest any clean way to deal with this?
cpp.cxxFlags: product.cpp.cxxFlags.concat([/*artifact-specific stuff*/])
Christian
More information about the Qbs
mailing list