aboutsummaryrefslogtreecommitdiff
path: root/ports/google-cloud-cpp/include-protobuf.patch
diff options
context:
space:
mode:
authorzhouqi <zhouqi.whu@hotmail.com>2018-12-05 16:59:08 +0800
committerzhouqi <zhouqi.whu@hotmail.com>2018-12-05 16:59:08 +0800
commit2b410bea32837c8a498c3ce6ae88b82013fe2e52 (patch)
treea7cf9d04d503658f30149a1d291aefaef2f65c87 /ports/google-cloud-cpp/include-protobuf.patch
parent642e37b3c9f14d5f822239b630933d8eed7e8b70 (diff)
parent5f63d0a5f77b4179df6dc10110637775a1d0fe69 (diff)
downloadvcpkg-2b410bea32837c8a498c3ce6ae88b82013fe2e52.tar.gz
vcpkg-2b410bea32837c8a498c3ce6ae88b82013fe2e52.zip
Merge branch 'master' of https://github.com/zhouqime/vcpkg
Diffstat (limited to 'ports/google-cloud-cpp/include-protobuf.patch')
-rw-r--r--ports/google-cloud-cpp/include-protobuf.patch37
1 files changed, 13 insertions, 24 deletions
diff --git a/ports/google-cloud-cpp/include-protobuf.patch b/ports/google-cloud-cpp/include-protobuf.patch
index 63602ad72..d0e3529c7 100644
--- a/ports/google-cloud-cpp/include-protobuf.patch
+++ b/ports/google-cloud-cpp/include-protobuf.patch
@@ -1,24 +1,13 @@
-diff --git a/bigtable/CMakeLists.txt b/bigtable/CMakeLists.txt
-index 1b8089f..771e1ec 100644
---- a/bigtable/CMakeLists.txt
-+++ b/bigtable/CMakeLists.txt
-@@ -69,6 +69,10 @@ set(PROTOBUF_IMPORT_DIRS "${PROJECT_THIRD_PARTY_DIR}/googleapis" "${PROJECT_SOUR
- if(GRPC_ROOT_DIR)
- list(INSERT PROTOBUF_IMPORT_DIRS 0 "${GRPC_ROOT_DIR}/third_party/protobuf/src")
- endif(GRPC_ROOT_DIR)
-+find_path(PROTO_INCLUDE_DIR google/protobuf/descriptor.proto)
-+if(PROTO_INCLUDE_DIR)
-+ list(INSERT PROTOBUF_IMPORT_DIRS 0 "${PROTO_INCLUDE_DIR}")
-+endif()
-
- # Get the destination directories based on the GNU recommendations.
- include(GNUInstallDirs)
-@@ -110,7 +114,7 @@ enable_testing()
-
- # Capture the compiler version and the git revision into variables, then
- # generate a config file with the values.
--if (IS_DIRECTORY ${PROJECT_SOURCE_DIR}/.git)
-+if (IS_DIRECTORY ${PROJECT_SOURCE_DIR}/.git AND 0)
- execute_process(COMMAND git rev-parse --short HEAD
- OUTPUT_VARIABLE GIT_HEAD_LOG ERROR_VARIABLE GIT_HEAD_LOG)
- else ()
+--- a/google/cloud/bigtable/CMakeLists.txt 2018-11-09 10:56:34.029389338 -0500
++++ a/google/cloud/bigtable/CMakeLists.txt 2018-11-09 10:57:18.461259917 -0500
+@@ -53,6 +53,10 @@
+ # Configure the location of proto files, particulary the googleapis protos.
+ list(APPEND PROTOBUF_IMPORT_DIRS "${PROJECT_THIRD_PARTY_DIR}/googleapis"
+ "${PROJECT_SOURCE_DIR}")
++find_path(PROTO_INCLUDE_DIR google/protobuf/descriptor.proto)
++if(PROTO_INCLUDE_DIR)
++ list(INSERT PROTOBUF_IMPORT_DIRS 0 "${PROTO_INCLUDE_DIR}")
++endif()
+
+ # Include the functions to compile proto files.
+ include(CompileProtos)