From fe4d4392a6bda7e4473d3c3cd7dbe1324cba3e8a Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Mon, 5 Nov 2018 13:09:43 +0100 Subject: [PATCH] Use SDL2.dll path relative to script file Previously this was relative to the output file. This works around a premake5 bug and as a bonus makes it easier if we in the future decide to support out-of-source builds. --- RecastDemo/premake5.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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