cmake: Fix DEPENDS of add_custom_command in protobuf_generate

This commit is contained in:
Christian von Arnim 2018-05-15 09:06:54 +02:00
parent b9c0c5f526
commit 411018e3fb
No known key found for this signature in database
GPG Key ID: 9A2235280DE78C51

View File

@ -104,7 +104,7 @@ function(protobuf_generate)
OUTPUT ${_generated_srcs}
COMMAND protobuf::protoc
ARGS --${protobuf_generate_LANGUAGE}_out ${_dll_export_decl}${protobuf_generate_PROTOC_OUT_DIR} ${_protobuf_include_path} ${_abs_file}
DEPENDS ${ABS_FIL} protobuf::protoc
DEPENDS ${_abs_file} protobuf::protoc
COMMENT "Running ${protobuf_generate_LANGUAGE} protocol buffer compiler on ${_proto}"
VERBATIM )
endforeach()