[QBS] Change optimisation flasgs

Joerg Bornemann joerg.bornemann at digia.com
Tue Dec 10 10:27:31 CET 2013

On 09.12.2013 22:12, Raphael Cotty wrote:
> Thanks.
> I can turn it off globally by setting cpp.optimization to "non" in the profile.
> Is there a way to set it off for a project?

If you want to set a property for all products of your project, it's 
easiest to use qbs' QMLish inheritance. Create a file MyProduct.qbs, put 
this in there

Product {
    Depends {name: "cpp"}
    cpp.optimization: "none"

And use MyProduct instead of Product in your project files. The Qt 
Creator project files are a good example how to do that.



More information about the Qbs mailing list