-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Workaround FindProtobuf lacking support for Protobuf >= 22
1. If we can find a Protobuf with a CMake pkg, we are good. 2. Otherwise fall back to FindProtobuf. 3. If we find Protobuf >= 22 and do not detect the missing `absl::` target (this is a guess that `absl::` targets will exist once FindProtobuf supports Protobuf >= 22), we set Protobuf as NOTFOUND. Side notes: Old CMake versions (< 3.27) see Protobuf >= 21 as major version 4.21+. See also: * https://github.com/protocolbuffers/protobuf/releases/tag/v22.0 * https://protobuf.dev/news/2022-05-06/#versioning * protocolbuffers/protobuf#12292 * https://gitlab.kitware.com/cmake/cmake/-/issues/24847 (cherry picked from commit 0c09823)
- Loading branch information
1 parent
a073cf8
commit 9f1b365
Showing
2 changed files
with
19 additions
and
8 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