Merge topic 'FindProtobuf-depend-protoc'

e380d7c5 FindProtobuf: Make outputs depend on protoc executable
This commit is contained in:
Brad King 2014-09-22 09:13:07 -04:00 committed by CMake Topic Stage
commit 3303b5f8b4
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ function(PROTOBUF_GENERATE_CPP SRCS HDRS)
"${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.pb.h"
COMMAND ${PROTOBUF_PROTOC_EXECUTABLE}
ARGS --cpp_out ${CMAKE_CURRENT_BINARY_DIR} ${_protobuf_include_path} ${ABS_FIL}
DEPENDS ${ABS_FIL}
DEPENDS ${ABS_FIL} ${PROTOBUF_PROTOC_EXECUTABLE}
COMMENT "Running C++ protocol buffer compiler on ${FIL}"
VERBATIM )
endforeach()