[Qbs] Is there a feature similar with cmake option?

Christian Kandeler Christian.Kandeler at qt.io
Fri Jul 5 16:34:30 CEST 2019

On Fri, 5 Jul 2019 16:06:28 +0200
Richard Weickelt <richard at weickelt.de> wrote:

> And it sounds like CMakeCache.txt is used to prevent from typing a CMake
> command line with looooots of -D. Is that correct? There is no direct
> equivalent in Qbs.

But note that the property values are stored in the build graph, so you only have to enter them once.

> You can override project, product and module options on command line:
> https://doc-snapshots.qt.io/qbs/cli-build.html#parameters
> Nothing stops you from putting your custom overrides into a text file and
> then insert them right in place:
> # options.txt
> modules.cpp.optimization:fast project.myCoolFeatureEnabled:true
> # my-qbs-invocation-script.sh
> qbs build $(cat options.txt)

Also, there are profiles.


More information about the Qbs mailing list