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

          For Gerrit Dashboard: QBS-1310
          # Subject Branch Project Status CR V

          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