I have a typical application dev scenario, a library + application, both are qbs projects. In the library project I declared a Boolean property staticBuild default to true as follow:
Project { // the library
property bool staticBuild: true
Product {
type: staticBuild ? "staticlibrary" : "dynamiclibrary"
name: "Lib"
}
}
In the application project I use a Depends item to add Lib as a dependency as follow:
Project { // Application
Product {
type: "application"
Depends { name: "Lib" }
Lib.staticBuild: false // want to link to a dll.
}
}
but this property referencing does not work, I get error telling me that the property is not declared.
How could I fix this ?.