diff options
author | André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> | 2023-06-29 14:35:15 (GMT) |
---|---|---|
committer | André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> | 2023-06-30 07:10:18 (GMT) |
commit | cd3ff53c8850458d8aaec13d40c698b6225903cf (patch) | |
tree | 5bbb9416ec58606d07554b479d0dca4f7612e6c6 /Modules | |
parent | 31adc11030b16072a8d7e8dd44ec9a3db6618364 (diff) | |
download | CMake-cd3ff53c8850458d8aaec13d40c698b6225903cf.zip CMake-cd3ff53c8850458d8aaec13d40c698b6225903cf.tar.gz CMake-cd3ff53c8850458d8aaec13d40c698b6225903cf.tar.bz2 |
FindProtobuf: Add DEPENDENCIES to protobuf_generate
See upstream PR for details https://github.com/protocolbuffers/protobuf/pull/10014.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindProtobuf.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake index f766847..649e571 100644 --- a/Modules/FindProtobuf.cmake +++ b/Modules/FindProtobuf.cmake @@ -140,7 +140,7 @@ Example: function(protobuf_generate) set(_options APPEND_PATH DESCRIPTORS) - set(_singleargs LANGUAGE OUT_VAR EXPORT_MACRO PROTOC_OUT_DIR PLUGIN PLUGIN_OPTIONS) + set(_singleargs LANGUAGE OUT_VAR EXPORT_MACRO PROTOC_OUT_DIR PLUGIN PLUGIN_OPTIONS DEPENDENCIES) if(COMMAND target_sources) list(APPEND _singleargs TARGET) endif() @@ -269,7 +269,7 @@ function(protobuf_generate) OUTPUT ${_generated_srcs} COMMAND protobuf::protoc ARGS ${protobuf_generate_PROTOC_OPTIONS} --${protobuf_generate_LANGUAGE}_out ${_plugin_options}:${protobuf_generate_PROTOC_OUT_DIR} ${_plugin} ${_dll_desc_out} ${_protobuf_include_path} ${_abs_file} - DEPENDS ${_abs_file} protobuf::protoc + DEPENDS ${_abs_file} protobuf::protoc ${protobuf_generate_DEPENDENCIES} COMMENT ${_comment} VERBATIM ) endforeach() |