From d875f36be2871896eb1c99e890fee590a4f55337 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 11 Feb 2016 17:58:25 +0100 Subject: [PATCH] Fix vpaths if not using new structure --- premake5.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/premake5.lua b/premake5.lua index dfc04e2b..44314aa5 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,6 +1,3 @@ --- protoc tool -protocBinPath = path.translate(path.join(_MAIN_SCRIPT_DIR, "tools", "protoc.exe")) - -- Option to allow copying the DLL file to a custom folder after build newoption { trigger = "copy-to", @@ -132,6 +129,12 @@ workspace "iw4x" "./deps/protobuf/src", "./deps/Wink-Signals", } + + -- fix vpaths for protobuf sources + vpaths { + ["*"] = { "./src/**" }, + ["Proto/*"] = { "./build/src/proto/**" }, -- seems like we need 'build' here + } -- Virtual paths if not _OPTIONS["no-new-structure"] then