Build: Copy .dll only if host is Windows

This commit is contained in:
Lynix 2018-08-08 10:35:49 +02:00
parent 8ffe7f14ba
commit 9ecfe31637
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Miscellaneous:
- NDEBUG is now defined in Release
- Replaced typedefs keywords with modern using keywords
- When supported, projects are now parts of a virtual "workspace group" according to their kind
- Fixed .dll copy when building Nazara occuring on Linux when targeting Windows (MinGW)
Nazara Engine:
- VertexMapper:GetComponentPtr no longer throw an error if component is disabled or incompatible with template type, instead a null pointer is returned.

View File

@ -608,7 +608,7 @@ function NazaraBuild:LoadConfig()
end
function NazaraBuild:MakeInstallCommands(infoTable)
if (os.istarget("windows")) then
if (os.ishost("windows")) then
filter("kind:SharedLib")
postbuildmessage("Copying " .. infoTable.Name .. " library and its dependencies to install/executable directories...")