Unverified Commit 2e26a84a authored by Robert Edmonds's avatar Robert Edmonds Committed by GitHub

Merge pull request #757 from protobuf-c/edmonds/cmake-ninja-build-fix

cmake: Fix build when using ninja and protobuf-c already installed
parents f981c8d7 417c759b
......@@ -157,7 +157,7 @@ if(BUILD_PROTOC)
COMMAND
${CMAKE_COMMAND} -E env PATH="${OS_PATH_VARIABLE}"
${PROTOBUF_PROTOC_EXECUTABLE} --cpp_out ${CMAKE_CURRENT_BINARY_DIR}
-I${PROTOBUF_INCLUDE_DIR} -I${MAIN_DIR}
-I${MAIN_DIR} -I${PROTOBUF_INCLUDE_DIR}
${MAIN_DIR}/protobuf-c/protobuf-c.proto
COMMENT Running
protoc on ${MAIN_DIR}/protobuf-c/protobuf-c.proto
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment