-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't try to build exteral/googleapis as shared on win
- Loading branch information
1 parent
b53d82e
commit c31a643
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
recipe/patches/0001-do-not-try-to-build-external-googleapis-as-shared.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 87908262e50b189f782589fe0cae5ac3927d1c47 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <[email protected]> | ||
Date: Wed, 31 Aug 2022 19:00:34 +0200 | ||
Subject: [PATCH] do not try to build external/googleapis as shared | ||
|
||
--- | ||
CMakeLists.txt | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 64e60a8d..4fa7a7c4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -251,7 +251,10 @@ find_package(absl CONFIG REQUIRED) | ||
if (${GOOGLE_CLOUD_CPP_ENABLE_GRPC}) | ||
find_package(gRPC REQUIRED QUIET) | ||
find_package(ProtobufWithTargets REQUIRED QUIET) | ||
+ # do not try to build googleapis shared on windows | ||
+ set(BUILD_SHARED_LIBS OFF) | ||
add_subdirectory(external/googleapis) | ||
+ set(BUILD_SHARED_LIBS ON) | ||
endif () | ||
|
||
# The only case where REST support is not needed is when not compiling services | ||
-- | ||
2.37.0.windows.1 | ||
|