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

moduleSearchPaths inside a Product has no effect

    XMLWordPrintable

Details

    Description

      Specifying a moduleSearchPaths inside a Product has no effect, whereas the same binding inside the Project works ok. For example:

      import qbs.base 1.0
      
      Project {
          Application {
              moduleSearchPaths: "." // This doesn't work
              name: "modulesearch"
              Depends { name: 'cpp' }
              Depends { name: "submod" }
              files: ["modulesearch.cpp"]
          }
      }
      
      D:\workitems\qbs-bugs\modulesearch>qbs
      Found project file D:\workitems\qbs-bugs\modulesearch\modulesearch.qbp
      ERROR: D:\workitems\qbs-bugs\modulesearch\modulesearch.qbp Product dependency 'submod' not found.
      

      If the "moduleSearchPaths" is moved up into the Project{}, then submod is located ok (project files attached).

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            tomsci Tom Sutcliffe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes