Raise an error if trying to use NuGet without Curl
This commit is contained in:
parent
34eb9c691a
commit
52b21eefdb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user