From 0bfd6992c72a08643c2bd68465d2d9f9b2c038fa Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 4 Jan 2016 21:00:17 +0100 Subject: [PATCH] premake5: properly define objdir and targetdir and apply path standards (./) --- premake5.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/premake5.lua b/premake5.lua index c02fd57d..24767750 100644 --- a/premake5.lua +++ b/premake5.lua @@ -48,7 +48,9 @@ newaction { } workspace "iw4x" - location ("./build") + location "./build" + objdir "%{wks.location}/obj" + targetdir "%{wks.location}/bin/%{cfg.buildcfg}" configurations { "Normal", "Debug", "DebugStatic", "Release", "ReleaseStatic" } -- VS 2015 toolset only @@ -85,8 +87,8 @@ workspace "iw4x" -- Virtual paths if not _OPTIONS["no-new-structure"] then vpaths { - ["Headers/*"] = "src/**.hpp", - ["Sources/*"] = {"src/**.cpp"} + ["Headers/*"] = "./src/**.hpp", + ["Sources/*"] = {"./src/**.cpp"} } end