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