From: JerryShih Date: Thu, 6 Dec 2018 06:47:54 +0000 (-0800) Subject: Remove protobuf dependency in pytorch cmake file. (#14182) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~2429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=997df9a6ec4e982b68bd952ccadc7fc453e2eaca;p=platform%2Fupstream%2Fpytorch.git Remove protobuf dependency in pytorch cmake file. (#14182) Summary: Currently, pytorch doesn't dependent on protobuf. So, we don't need to include the protobuf dir in pytorch cmake file. And if we build caffe2 without custom-protobuf[1], we will have the protobuf mismatched problem. [1] https://github.com/pytorch/pytorch/blob/92dbd0219f6fbdb1db105386386ccf92c0758e86/CMakeLists.txt#L65 Pull Request resolved: https://github.com/pytorch/pytorch/pull/14182 Differential Revision: D13356273 Pulled By: ezyang fbshipit-source-id: 8120c3452d158dc51d70156433d7b9076c6aed47 --- diff --git a/torch/CMakeLists.txt b/torch/CMakeLists.txt index 9c4a018..d8cef3c 100644 --- a/torch/CMakeLists.txt +++ b/torch/CMakeLists.txt @@ -580,7 +580,6 @@ if (BUILD_PYTHON) ${TORCH_ROOT}/third_party/build/nccl/include ${TORCH_ROOT}/third_party/gloo ${TORCH_ROOT}/third_party/onnx - ${TORCH_ROOT}/third_party/protobuf/src ${TORCH_ROOT}/third_party/pybind11/include ${TORCH_SRC_DIR}/csrc