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

Module.condition cannot access qbs properties set in the product

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.11.0
    • 1.8.1
    • General
    • None
    • 1bc8e4ca4809e3a71152bea0cbbeb07d7a866d5f

    Description

      The following example will fail with "module m cannot be loaded".

      import qbs
      
      Product {
          qbs.sysroot: "x"
          Depends { name: "m" }
      }
      
      import qbs
      
      Module {
         condition: qbs.sysroot === "x"
      }
      

      This issue was found in https://codereview.qt-project.org/#/c/202399/.

      Attachments

        1. QBS-1173.tar
          10 kB
          Christian Kandeler

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes