Skip to content

Commit e38b398

Browse files
committed
CMake: Fix error locating protobuf without Hunter
When protobuf is provided by the build system, it may use a CMake Find module instead of a package configuration file. Error was: | CMake Error at cmake/dependencies.cmake:18 (find_package): | Could not find a package configuration file provided by "Protobuf" with any | of the following names: | | ProtobufConfig.cmake | protobuf-config.cmake
1 parent a8b1c3c commit e38b398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ find_package(OpenSSL REQUIRED)
1616

1717
# https://developers.google.com/protocol-buffers/
1818
hunter_add_package(Protobuf)
19-
find_package(Protobuf CONFIG REQUIRED)
19+
find_package(Protobuf REQUIRED)
2020

2121
# https://docs.hunter.sh/en/latest/packages/pkg/spdlog.html
2222
hunter_add_package(spdlog)

0 commit comments

Comments
 (0)