Premake: Fix fail on --copy-to due to missing target directory.
This commit is contained in:
parent
d324bc0977
commit
63fc302ce0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user