Skip to content

Commit 7774606

Browse files
committed
[PR 128] CMake: Fix error locating protobuf without Hunter
When protobuf is provided by other build systems, it may require discovery using a Findprotobuf.cmake module instead of the config file. By removing 'CONFIG', we allow CMake to choose. 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 0298870 commit 7774606

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
@@ -20,7 +20,7 @@ find_package(OpenSSL REQUIRED)
2020

2121
# https://developers.google.com/protocol-buffers/
2222
hunter_add_package(Protobuf)
23-
find_package(Protobuf CONFIG REQUIRED)
23+
find_package(Protobuf REQUIRED)
2424

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

0 commit comments

Comments
 (0)