File onnxruntime-system-flatbuffers.patch of Package onnxruntime
diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
index 775576a7..078e71f5 100644
--- a/cmake/external/onnxruntime_external_deps.cmake
+++ b/cmake/external/onnxruntime_external_deps.cmake
@@ -118,7 +118,7 @@ FetchContent_Declare(
URL ${DEP_URL_flatbuffers}
URL_HASH SHA1=${DEP_SHA1_flatbuffers}
PATCH_COMMAND ${ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND}
- FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers
+ FIND_PACKAGE_ARGS 23.5.9 NAMES flatbuffers
)
@@ -422,6 +422,8 @@ namespace std { using ::getenv; }
target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h)
endif()
endif()
+else()
+ add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared)
endif()
if (onnxruntime_BUILD_UNIT_TESTS)