-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: provide protobuf as a fallback dependency (#96)
If the protobuf library does not exist on the system, the library is fetched and installed from github. This provides greater compatibility for various operating systems.
- Loading branch information
1 parent
ed37bf8
commit e26585f
Showing
8 changed files
with
54 additions
and
15 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
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
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
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
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
Submodule googletest
deleted from
d92511
Submodule protobuf-matchers
updated
4 files
+1 −0 | .bazelrc | |
+11 −0 | .github/workflows/ci.yaml | |
+2 −3 | CMakeLists.txt | |
+1 −1 | protobuf-matchers/protocol-buffer-matchers.h |
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,19 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include_guard(GLOBAL) | ||
|
||
set(ABSL_PROPAGATE_CXX_STD ON) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare(GTest | ||
GIT_REPOSITORY https://github.com/google/googletest.git | ||
GIT_TAG v1.14.0 | ||
OVERRIDE_FIND_PACKAGE | ||
) | ||
FetchContent_Declare(Protobuf | ||
GIT_REPOSITORY https://github.com/protocolbuffers/protobuf.git | ||
GIT_TAG v23.4 | ||
OVERRIDE_FIND_PACKAGE | ||
) | ||
set(protobuf_BUILD_TESTS OFF CACHE INTERNAL "") | ||
FetchContent_MakeAvailable(Protobuf GTest) |