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

Setting module property on Artifact causes warning message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: General
    • Labels:
      None
    • Commits:
      d70a44607c142be32677fd8d2435c1e571c65b9f

      Description

      In the attached example I'm trying to set module properties on Artifact item.

      Artifact {
          filePath: input.fileName
          fileTags: ["out"]
          qbs.install: true
          cpp.defines: ["X"]
      }
      

      Build succeeds as expected and the file appears in "install-root" but QBS prints these warnings:

      Restoring build graph from disk
      Resolving project for configuration default
      WARNING: /home/kds/src/qbs_test/test.qbs:16:9 Item 'cpp' is not declared. Did you forget to add a Depends item?
      WARNING: /home/kds/src/qbs_test/test.qbs:16:9 Item 'qbs' is not declared. Did you forget to add a Depends item?
      Building for configuration default
      Build done for configuration default.
      

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            kds Denis Klychkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes