Skip to content

Commit

Permalink
[PR 128] CMake: Fix error locating protobuf without Hunter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eigendude committed Mar 8, 2020
1 parent 0298870 commit 7774606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find_package(OpenSSL REQUIRED)

# https://developers.google.com/protocol-buffers/
hunter_add_package(Protobuf)
find_package(Protobuf CONFIG REQUIRED)
find_package(Protobuf REQUIRED)

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

0 comments on commit 7774606

Please sign in to comment.