Skip to content

Commit 6403358

Browse files
committed
don't try to build exteral/googleapis as shared on win
1 parent 58fd82b commit 6403358

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

recipe/meta.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ package:
88
source:
99
url: https://github.com/googleapis/{{ name }}/archive/v{{ version }}.tar.gz
1010
sha256: 168c38219feb5a2c6b81bec5960cd067f6cda3daa83cd9761fa04f27d2b78f17
11+
patches:
12+
# don't try to build the protobuf-heavy googleapis as shared on win
13+
- patches/0001-do-not-try-to-build-external-googleapis-as-shared.patch # [win]
1114

1215
build:
1316
number: 1
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 87908262e50b189f782589fe0cae5ac3927d1c47 Mon Sep 17 00:00:00 2001
2+
From: "H. Vetinari" <[email protected]>
3+
Date: Wed, 31 Aug 2022 19:00:34 +0200
4+
Subject: [PATCH] do not try to build external/googleapis as shared
5+
6+
---
7+
CMakeLists.txt | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/CMakeLists.txt b/CMakeLists.txt
11+
index 64e60a8d..4fa7a7c4 100644
12+
--- a/CMakeLists.txt
13+
+++ b/CMakeLists.txt
14+
@@ -251,7 +251,10 @@ find_package(absl CONFIG REQUIRED)
15+
if (${GOOGLE_CLOUD_CPP_ENABLE_GRPC})
16+
find_package(gRPC REQUIRED QUIET)
17+
find_package(ProtobufWithTargets REQUIRED QUIET)
18+
+ # do not try to build googleapis shared on windows
19+
+ set(BUILD_SHARED_LIBS OFF)
20+
add_subdirectory(external/googleapis)
21+
+ set(BUILD_SHARED_LIBS ON)
22+
endif ()
23+
24+
# The only case where REST support is not needed is when not compiling services
25+
--
26+
2.37.0.windows.1
27+

0 commit comments

Comments
 (0)