views:

7

answers:

0

I have a visual studio 2003 project that uses a custom build step to create a pair of .h and .cpp files. The .h and .cpp files are in the project as is a .proto file that has the custom build step. The problem is that although the .h and cpp files are generated whenever the .proto file is changed other cpp files that depend on the .h file are not subsequently compiled. A second build is required for these to compile.

For the record these are the custom build settings:

Comand line:

protoc -I=$(InputDir) --cpp_out=$(InputDir) $(InputDir)/test.proto

Description:

Compiling test protocol buffer

Outputs:

test.pb.h;test.pb.cc