File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ if (NOT ONNX_MODELS_DIR)
16
16
set (ONNX_MODELS_DIR input_models)
17
17
endif ()
18
18
19
- #protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS "${SOFIE_PARSERS_DIR}/onnx_proto3")
20
- #set_source_files_properties(${PROTO_SRCS} ${PROTO_HDRS} PROPERTIES GENERATED TRUE)
21
-
22
19
add_executable (emitFromONNX
23
20
EmitFromONNX.cxx
24
21
)
@@ -83,8 +80,12 @@ target_compile_options(emitFromROOT PRIVATE -Wno-unused-parameter -Wno-array-bou
83
80
84
81
# Automatic compilation of headers from root files
85
82
add_custom_target (SofieCompileModels_ROOT)
86
- add_dependencies (SofieCompileModels_ROOT emitFromROOT)
87
-
83
+ # onepcm or modules dependency is needed for using ROOT I/O when converting a model in a ROOT file
84
+ if (runtime_cxxmodules)
85
+ add_dependencies (SofieCompileModels_ROOT emitFromROOT modules_idx)
86
+ else ()
87
+ add_dependencies (SofieCompileModels_ROOT emitFromROOT onepcm)
88
+ endif ()
88
89
# Finding .onnx files to be parsed and creating the appropriate command
89
90
file (GLOB ONNX_FILES "${ONNX_MODELS_DIR} /*.onnx" )
90
91
foreach (onnx_file ${ONNX_FILES} )
You can’t perform that action at this time.
0 commit comments