summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-22 13:13:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-22 13:13:07 (GMT)
commit3303b5f8b462d12af3874cee1b97fabfee6ffb3e (patch)
tree34b04aeca3eeaf2bf94994f3817caafc0b11fc80
parent2f3985c6a5c35f53301762fe74cf83213a29afd0 (diff)
parente380d7c5baca9de5fcb5826e2d9386a6dd57e48c (diff)
downloadCMake-3303b5f8b462d12af3874cee1b97fabfee6ffb3e.zip
CMake-3303b5f8b462d12af3874cee1b97fabfee6ffb3e.tar.gz
CMake-3303b5f8b462d12af3874cee1b97fabfee6ffb3e.tar.bz2
Merge topic 'FindProtobuf-depend-protoc'
e380d7c5 FindProtobuf: Make outputs depend on protoc executable
-rw-r--r--Modules/FindProtobuf.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake
index 9b120a6..72ca6ed 100644
--- a/Modules/FindProtobuf.cmake
+++ b/Modules/FindProtobuf.cmake
@@ -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()