Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-877

Module properties not inherited to Properties item within groups

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.4.4
    • 1.4.2, 1.5.0
    • General
    • None
    • 55ff3783ce27c87517ae4758fdaca0f16a86367b

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes