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

Cannot use module properties for Depends.condition in base items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 1.10.1
    • None

    Description

      The following project

      // CondBase.qbs
      Application {
          name: 'conditionaldepends_base'
          property bool someProp: false
          Depends {
              condition: someProp
              name: 'dummy'
          }
      }
      
      // app.qbs
      CondBase {
          name: 'conditionaldepends_derived_true_from_module'
          Depends { name: "dummy2" }
          someProp: dummy2.someTrueProp
      }
      

      produces the error

      Can't find variable: dummy2
      

      It should be possible to override someProp in app.qbs and use a module property.

      The error vanishes if I put

          Depends { name: "dummy2" }
      

      into the base item.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes