Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
0.2
-
None
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).