CMakeLists: Fix the error reported when Wireshark code is recompiled

The reference variable is incorrect. As a result, the file in this directory(/resources/protocols/protobuf/sparkplug_b.proto) are deleted during recompilation. so compilation errors occur.
Related to #18013
This commit is contained in:
easonweii 2022-03-25 19:31:43 +08:00 committed by Gerald Combs
parent 47f72e2366
commit bdccea7692
1 changed files with 1 additions and 1 deletions

View File

@ -2359,7 +2359,7 @@ set (_protobuf_data_files)
set (_protobuf_dep_files)
foreach(_data_file ${_protobuf_src_files})
list(APPEND _protobuf_data_files ${DATAFILE_DIR}/${_data_file})
list(APPEND _protobuf_data_files ${_protocol_data_dir}/${_data_file})
list(APPEND _protobuf_dep_files ${_protocol_data_dir}/${_data_file})
endforeach()
add_custom_command(