diff options
Diffstat (limited to 'system-flatbuffers.patch')
-rw-r--r-- | system-flatbuffers.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system-flatbuffers.patch b/system-flatbuffers.patch new file mode 100644 index 000000000000..87b010f4ae47 --- /dev/null +++ b/system-flatbuffers.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake +index 0c41945778..39e3fc89e7 100644 +--- a/cmake/external/onnxruntime_external_deps.cmake ++++ b/cmake/external/onnxruntime_external_deps.cmake +@@ -289,6 +289,9 @@ namespace std { using ::getenv; } + target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h) + endif() + endif() ++else() ++ add_executable(flatc ALIAS flatbuffers::flatc) ++ add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared) + endif() + + if (onnxruntime_BUILD_UNIT_TESTS) |