diff --git a/RecastDemo/premake5.lua b/RecastDemo/premake5.lua index 8545c6d..5a7e9aa 100644 --- a/RecastDemo/premake5.lua +++ b/RecastDemo/premake5.lua @@ -170,7 +170,7 @@ project "RecastDemo" } postbuildcommands { -- Copy the SDL2 dll to the Bin folder. - '{COPY} "%{wks.location}../../Contrib/SDL/lib/%{cfg.architecture:gsub("x86_64", "x64")}/SDL2.dll" "%{cfg.targetdir}"' + '{COPY} "%{path.getabsolute("Contrib/SDL/lib/" .. cfg.architecture:gsub("x86_64", "x64") .. "/SDL2.dll")}" "%{cfg.targetdir}"' } -- mac includes and libs