Skip to content

build(deps): refactor CMake files for finding Protobuf#138

Merged
ingomueller-net merged 1 commit intosubstrait-io:mainfrom
ingomueller-net:cmake-revamp-protobuf
Mar 26, 2026
Merged

build(deps): refactor CMake files for finding Protobuf#138
ingomueller-net merged 1 commit intosubstrait-io:mainfrom
ingomueller-net:cmake-revamp-protobuf

Conversation

@ingomueller-net
Copy link
Copy Markdown
Contributor

This PR refactors the CMake logic that finds or fetches the protobuf dependency. This consists of the following individual changes:

  • Move the fetching of the googletest dependency from protobuf.cmake to gtest.cmake because it is unrelated.
  • Introduce options that allow to disable the usage of find_package and FetchContent respectively in order to give downstream projects control on how the dependency is provided.
  • Introduce options to enable or disable config mode for find_package and the git tag used by FetchContent for the same reason.

@ingomueller-net ingomueller-net marked this pull request as ready for review March 26, 2026 08:54
@ingomueller-net ingomueller-net enabled auto-merge (squash) March 26, 2026 09:22
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 26, 2026
This PR refactors the CMake logic that finds or fetches the
GTest/googletest dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library. The PR also removes a redundant logic of
finding/fetching that dependency, which previously existed twice.

Signed-off-by: Ingo Müller <ingomueller@google.com>
@ingomueller-net ingomueller-net changed the title build(protobuf): refactor CMake files for finding Protobuf build(deps): refactor CMake files for finding Protobuf Mar 26, 2026
auto-merge was automatically disabled March 26, 2026 16:40

Pull Request is not mergeable

This PR refactors the CMake logic that finds or fetches the protobuf
dependency. This consists of the following individual changes:

* Move the fetching of the `googletest` dependency from `protobuf.cmake`
  to `gtest.cmake` because it is unrelated.
* Introduce options that allow to disable the usage of `find_package`
  and `FetchContent` respectively in order to give downstream projects
  control on how the dependency is provided.
* Introduce options to enable or disable config mode for `find_package`
  and the git tag used by `FetchContent` for the same reason.

Signed-off-by: Ingo Müller <ingomueller@google.com>
@ingomueller-net ingomueller-net merged commit 3cfea55 into substrait-io:main Mar 26, 2026
4 checks passed
@ingomueller-net ingomueller-net deleted the cmake-revamp-protobuf branch March 26, 2026 19:11
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 26, 2026
This PR refactors the CMake logic that finds or fetches the
GTest/googletest dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library. The PR also removes a redundant logic of
finding/fetching that dependency, which previously existed twice.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 27, 2026
This PR refactors the CMake logic that finds or fetches the
GTest/googletest dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library. The PR also removes a redundant logic of
finding/fetching that dependency, which previously existed twice.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 30, 2026
This PR refactors the CMake logic that finds or fetches the
GTest/googletest dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library. The PR also removes a redundant logic of
finding/fetching that dependency, which previously existed twice.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 31, 2026
This PR refactors the CMake logic that finds or fetches the
GTest/googletest dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library. The PR also removes a redundant logic of
finding/fetching that dependency, which previously existed twice.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to ingomueller-net/substrait-cpp that referenced this pull request Mar 31, 2026
This PR refactors the CMake logic that finds or fetches the
abseil-cpp dependency. It follows the same pattern applied by substrait-io#138
for the protobuf library.

Signed-off-by: Ingo Müller <ingomueller@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants