From ab7f1bfcca10869437887b7e8b05d3d8792dd519 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 11 Feb 2016 18:46:24 +0100 Subject: [PATCH] protoc has no support for spaces in the commandline (https://github.com/google/protobuf/issues/955) --- premake5.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 44314aa5..0f64fae8 100644 --- a/premake5.lua +++ b/premake5.lua @@ -334,7 +334,7 @@ rule "ProtobufCompiler" '@echo off', 'path "$(SolutionDir)\\..\\tools"', 'if not exist "$(ProjectDir)\\src\\proto" mkdir "$(ProjectDir)\\src\\proto"', - 'protoc --error_format=msvs -I=%(RootDir)%(Directory) "--cpp_out=$(ProjectDir)\\src\\proto" "%(FullPath)"', + 'protoc --error_format=msvs -I=%(RelativeDir) --cpp_out=src\\proto %(Identity)', } buildoutputs { '$(ProjectDir)\\src\\proto\\%(Filename).pb.cc',