On 16/01/2017 11:14 PM, Russel Winder via Digitalmars-d-learn wrote:
The Dub manual says that:


name "mylib"
targetType "none"
dependency "mylib:component1" version="*"
subPackage {
        name "component1"
        targetType "library"
        sourcePaths "component1/source"
        importPaths "component1/source"
}


is reasonable. However whenever I try something of this sort I get:


Main package must have a binary target type, not none. Cannot build.

Change targetType to "library" and it should work.
It doesn't auto infer that it should be library since you have overriden that ability of it.

Reply via email to