Details
Description
Consider thefollowing test case:
test.qbs
import qbs 1.0 Product { type : "application" property bool featureEnabled : true Depends { name : "cpp" } cpp.defines : [ "BASEDEF" ] Group { files : [ "test.cc" ] Properties { condition : featureEnabled == true cpp.defines : base.concat(["FEATURE_ENABLED"]) } } }
test.cc
#ifndef BASEDEF #error BASEDEF NOT DEFINED #endif
BASEDEF is not defined when compiling test.cc. Am I doing something wrong here?
I'm sure, I could resolve this issue in a nother project by adding an empty cpp.defines : outer.concat([]) to the group, but it doesn't work in this minimal test case.