used vc2010.element instead of _p for additional manifests

This commit is contained in:
dcourtois 2013-09-18 10:35:02 +02:00
parent 36d62865b1
commit 912a0e2ec3

View File

@ -372,10 +372,12 @@
--
function vc2010.manifest(cfg)
-- no additional manifests in static lib
if cfg.kind == premake.STATICLIB then
return
end
-- get the manifests files
local manifests = {}
for _, fname in ipairs(cfg.files) do
if path.getextension(fname) == ".manifest" then
@ -389,7 +391,7 @@
end
_p(2,'<Manifest>')
_x(3,'<AdditionalManifestFiles>%s %%(AdditionalManifestFiles)</AdditionalManifestFiles>', table.concat(manifests, " "))
vc2010.element(3, "AdditionalManifestFiles", nil, "%s %%(AdditionalManifestFiles)", table.concat(manifests, " "))
_p(2,'</Manifest>')
end