diff --git a/src/u_dubproject.pas b/src/u_dubproject.pas index 3bb0f28d..8a41f550 100644 --- a/src/u_dubproject.pas +++ b/src/u_dubproject.pas @@ -1374,6 +1374,8 @@ begin begin lst.Clear; listFiles(lst, pth, true); + if lst.Count > 0 then + fImportPaths.Add(pth); for abs in lst do if isDlangCompilable(abs.extractFileExt) then fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, abs))); @@ -1884,9 +1886,9 @@ procedure TDubProject.updateFields; begin updatePackageNameFromJson; udpateConfigsFromJson; + updateImportPathsFromJson; updateSourcesFromJson; updateTargetKindFromJson; - updateImportPathsFromJson; updateOutputNameFromJson; end;