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

Cannot use module properties for Depends.condition in base items

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes