diff --git a/engine/premake5.lua b/engine/premake5.lua index b0cf69b..9af9ffa 100644 --- a/engine/premake5.lua +++ b/engine/premake5.lua @@ -190,6 +190,9 @@ function gf_msvc_filters() linkoptions({"/MANIFEST"}) runtime(rt) staticruntime("Off") + postbuildcommands({ + "mt -manifest $(TargetDir)$(TargetName).dll.manifest -outputresource:$(TargetDir)$(TargetName).dll" + }) filter({ "options:cc=msc", "options:engine=static", diff --git a/premake5.lua b/premake5.lua index 0cf9599..35e59ea 100644 --- a/premake5.lua +++ b/premake5.lua @@ -54,6 +54,10 @@ function msvc_filters() runtime(rt) staticruntime("On") end + filter("options:cc=msc") + postbuildcommands({ + "mt -manifest $(TargetDir)$(TargetName).exe.manifest -outputresource:$(TargetDir)$(TargetName).exe" + }) end include "engine"