[WebNN EP] Fix compilation with newer flatbuffers (#17367)

This commit is contained in:
Wanming Lin 2023-09-01 01:22:15 +08:00 committed by GitHub
parent e60493525f
commit 3a53836836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1072,7 +1072,7 @@ if (onnxruntime_USE_WEBNN)
source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webnn_cc_srcs})
onnxruntime_add_static_library(onnxruntime_providers_webnn ${onnxruntime_providers_webnn_cc_srcs})
onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto Boost::mp11)
onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
add_dependencies(onnxruntime_providers_webnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
set_target_properties(onnxruntime_providers_webnn PROPERTIES FOLDER "ONNXRuntime")