From 04f6baf0c847c39faafb8ce51a4db8a82560ad08 Mon Sep 17 00:00:00 2001
From: Joao Matos <joao@tritao.eu>
Date: Sun, 29 Nov 2015 00:16:53 +0000
Subject: [PATCH] Updated build  objects directory to use same pattern as
 libraries.

---
 build/Helpers.lua  | 1 +
 build/premake4.lua | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/build/Helpers.lua b/build/Helpers.lua
index e4b0af62..ecec2879 100644
--- a/build/Helpers.lua
+++ b/build/Helpers.lua
@@ -14,6 +14,7 @@ if _ARGS[1] then
     builddir = path.getabsolute("./" .. _ARGS[1]);
 end
 
+objsdir = path.join(builddir, "obj", "%{cfg.buildcfg}_%{cfg.platform}");
 libdir = path.join(builddir, "lib", "%{cfg.buildcfg}_%{cfg.platform}");
 gendir = path.join(builddir, "gen");
 
diff --git a/build/premake4.lua b/build/premake4.lua
index f9271bf0..4c2b8e65 100644
--- a/build/premake4.lua
+++ b/build/premake4.lua
@@ -16,7 +16,7 @@ solution "CppSharp"
   flags { common_flags }
   
   location (builddir)
-  objdir (path.join(builddir, "obj"))
+  objdir (objsdir)
   targetdir (libdir)
   debugdir (bindir)