Premake: Fix fail on --copy-to due to missing target directory.

This commit is contained in:
/dev/urandom 2016-08-10 17:08:27 +02:00
parent d324bc0977
commit 63fc302ce0
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -197,7 +197,8 @@ workspace "iw4x"
if _OPTIONS["copy-to"] then
saneCopyToPath = string.gsub(_OPTIONS["copy-to"] .. "\\", "\\\\", "\\")
postbuildcommands {
"copy /y \"$(TargetDir)*.dll\" \"" .. saneCopyToPath .. "\""
"if not exist \"" .. saneCopyToPath .. "\" mkdir \"" .. saneCopyToPath .. "\"",
"copy /y \"$(TargetDir)*.dll\" \"" .. saneCopyToPath .. "\"",
}
end