Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.2.0
-
None
-
18fd05100ec274c49e85944482a13334d4588b03
Description
The following code is compiling with command: qbs build -p bar
import qbs Project { CppApplication { name: "foo" files: ["*.c"] } CppApplication { name: "bar" files: ["bar/*.c"] Depends { name: "foo" required: false //true } } }
If required is false, foo isn't compiled at all, foo.present is false and exported properties isn't affect dependent product.
If required is true, foo is compiled and foo.present is undefined.
Documentation doesn't state that required and present properties should works with product dependencies, but it would be useful, e.g. for implementing configuration tests.
Attachments
Issue Links
- relates to
-
QBS-572 melt Product item type into Module
- Closed
For Gerrit Dashboard: QBS-610 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
127910,3 | Allow soft dependencies on products. | master | qbs/qbs | Status: MERGED | -2 | 0 |