Skip to content

Commit

Permalink
Remove error_code protobuf from CMake files
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccrmck committed Apr 15, 2019
1 parent 7fd83d9 commit 69024e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/onnxruntime_hosting.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ project(onnxruntime_hosting)

# Generate .h and .cc files from protobuf file
add_library(hosting_proto
${ONNXRUNTIME_ROOT}/hosting/protobuf/predict.proto
${ONNXRUNTIME_ROOT}/hosting/protobuf/error_code.proto)
${ONNXRUNTIME_ROOT}/hosting/protobuf/predict.proto)
target_include_directories(hosting_proto PUBLIC $<TARGET_PROPERTY:protobuf::libprotobuf,INTERFACE_INCLUDE_DIRECTORIES> "${CMAKE_CURRENT_BINARY_DIR}/.." ${CMAKE_CURRENT_BINARY_DIR}/onnx)
target_compile_definitions(hosting_proto PUBLIC $<TARGET_PROPERTY:protobuf::libprotobuf,INTERFACE_COMPILE_DEFINITIONS>)
onnxruntime_protobuf_generate(APPEND_PATH IMPORT_DIRS ${REPO_ROOT}/cmake/external/protobuf/src ${ONNXRUNTIME_ROOT}/hosting/protobuf ${ONNXRUNTIME_ROOT}/core/protobuf TARGET hosting_proto)
add_dependencies(hosting_proto onnx_proto ${onnxruntime_EXTERNAL_DEPENDENCIES})
if(NOT WIN32)
if(HAS_UNUSED_PARAMETER)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/error_code.pb.cc PROPERTIES COMPILE_FLAGS -Wno-unused-parameter)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/model_metadata.pb.cc PROPERTIES COMPILE_FLAGS -Wno-unused-parameter)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/model_status.pb.cc PROPERTIES COMPILE_FLAGS -Wno-unused-parameter)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/predict.pb.cc PROPERTIES COMPILE_FLAGS -Wno-unused-parameter)
Expand Down

0 comments on commit 69024e4

Please sign in to comment.