From 57c0705ccdfff31a0a1b85e884ec1a5e0cc1ea6a Mon Sep 17 00:00:00 2001 From: "s.okada" Date: Thu, 19 Jul 2018 11:07:03 +0900 Subject: [PATCH 1/2] add protobuf version check --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e92ae0..e6d8397 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ set(EXTERNAL_DIR ${CMAKE_SOURCE_DIR}/external) set(ONNX_DIR ${EXTERNAL_DIR}/onnx) set(Protobuf_PROTOC_EXECUTABLE protoc CACHE STRING "protoc path") include(FindProtobuf) -find_package(Protobuf REQUIRED) +find_package(Protobuf 2.6.1 REQUIRED) include_directories(${PROTOBUF_INCLUDE_DIR}) execute_process(COMMAND git submodule update --init -- ${ONNX_DIR} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) execute_process(COMMAND ${Protobuf_PROTOC_EXECUTABLE} -I=${ONNX_DIR} --cpp_out=${ONNX_DIR} ${ONNX_DIR}/onnx/onnx.proto WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) From 8963580e0e9773148cdb03f6614a9a9edf24c06b Mon Sep 17 00:00:00 2001 From: "s.okada" Date: Thu, 19 Jul 2018 11:08:21 +0900 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2275afb..ac41996 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ This codebase contains C API and C++ API. ## Requirements - MKL-DNN Library (0.14 or later) -- Protocol Buffers (3.5.1 is checked) +- Protocol Buffers (2.6.1 or later) ## Build