diff --git a/source/dub/project.d b/source/dub/project.d index 9f22601..2dd341b 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -252,8 +252,11 @@ dst.addVersions(["Have_" ~ stripDlangSpecialChars(pkg.name)]); auto psettings = pkg.getBuildSettings(platform, configs[pkg.name]); - if (psettings.targetType != TargetType.none) + if (psettings.targetType != TargetType.none) { processVars(dst, pkg.path.toNativeString(), psettings); + if (psettings.importPaths.empty) + logWarn(`Package %s (configuration "%s") defines no import paths, use {"importPaths": [...]} or the default package directory structure to fix this.`, pkg.name, config); + } if (pkg is m_main) { enforce(psettings.targetType != TargetType.none, "Main package has target type \"none\" - stopping build."); dst.targetType = psettings.targetType;