Raise an error if trying to use NuGet without Curl

This commit is contained in:
Aleksi Juvani 2017-04-08 23:34:41 +03:00
parent 34eb9c691a
commit 52b21eefdb

View File

@ -61,6 +61,7 @@
m.actionSupportsKind,
m.projectRulesExist,
m.projectValuesInScope,
m.NuGetHasHTTP,
}
end
@ -223,6 +224,13 @@
end
function m.NuGetHasHTTP(prj)
if not http and #prj.nuget > 0 then
p.error("Premake was compiled with --no-curl, but Curl is required for NuGet support (project '%s' is referencing NuGet packages)", prj.name)
end
end
function m.uniqueProjectIds(wks)
local uuids = {}
for prj in p.workspace.eachproject(wks) do