Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Feb 26, 2025
1 parent 60427d4 commit 63d7039
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 116 deletions.
2 changes: 1 addition & 1 deletion cmake/onnxruntime_flatbuffers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file(GLOB onnxruntime_flatbuffers_srcs CONFIGURE_DEPENDS

source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_flatbuffers_srcs})

onnxruntime_add_static_library(onnxruntime_flatbuffers ${onnxruntime_flatbuffers_srcs} ${ONNXRUNTIME_ROOT}/core/flatbuffers/schema/ort.fbs.h)
onnxruntime_add_static_library(onnxruntime_flatbuffers ${onnxruntime_flatbuffers_srcs})
onnxruntime_add_include_to_target(onnxruntime_flatbuffers onnx flatbuffers::flatbuffers ${GSL_TARGET})
if(onnxruntime_ENABLE_INSTRUMENT)
target_compile_definitions(onnxruntime_flatbuffers PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
Expand Down
5 changes: 4 additions & 1 deletion cmake/onnxruntime_graph.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ if (onnxruntime_ENABLE_TRAINING_OPS)
list(REMOVE_ITEM orttraining_graph_src ${orttraining_graph_src_exclude})
endif()

add_library(onnxruntime_flatbuffers_generated INTERFACE ${ONNXRUNTIME_ROOT}/core/flatbuffers/schema/ort.fbs.h ${ONNXRUNTIME_ROOT}/lora/adapter_format/adapter_schema.fbs.h ${ONNXRUNTIME_ROOT}/test/flatbuffers/flatbuffers_utils_test.fbs.h)
LIST(APPEND onnxruntime_EXTERNAL_DEPENDENCIES onnxruntime_flatbuffers_generated)

onnxruntime_add_static_library(onnxruntime_graph ${onnxruntime_graph_src} ${orttraining_graph_src})
add_dependencies(onnxruntime_graph onnx_proto flatbuffers::flatbuffers)
add_dependencies(onnxruntime_graph ${onnxruntime_EXTERNAL_DEPENDENCIES})
onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)

if (MSVC)
Expand Down
2 changes: 1 addition & 1 deletion cmake/onnxruntime_lora.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file(GLOB onnxruntime_lora_srcs CONFIGURE_DEPENDS

source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_lora_srcs})

onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs} ${ONNXRUNTIME_ROOT}/lora/adapter_format/adapter_schema.fbs.h)
onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs})
onnxruntime_add_include_to_target(onnxruntime_lora onnx flatbuffers::flatbuffers Boost::mp11 ${GSL_TARGET})
target_link_libraries(onnxruntime_lora onnxruntime_framework)

Expand Down
113 changes: 0 additions & 113 deletions onnxruntime/test/flatbuffers/flatbuffers_utils_test.fbs.h

This file was deleted.

0 comments on commit 63d7039

Please sign in to comment.