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

Module.condition cannot access qbs properties set in the product

XMLWordPrintable

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

      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/.

        1. QBS-1173.tar
          10 kB
          Christian Kandeler
        For Gerrit Dashboard: QBS-1173
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes