diff --git a/source/dub/project.d b/source/dub/project.d index f3c39b1..1ad0b90 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -388,6 +388,7 @@ } if (pkg is m_main) { enforce(psettings.targetType != TargetType.none, "Main package has target type \"none\" - stopping build."); + enforce(psettings.targetType != TargetType.sourceLibrary, "Main package has target type \"sourceLibrary\" which generates no target - stopping build."); dst.targetType = psettings.targetType; dst.targetPath = psettings.targetPath; dst.targetName = psettings.targetName;