Skip to content

Commit

Permalink
Find protobuf in CONFIG mode to fixes the absl dependencies.
Browse files Browse the repository at this point in the history
See also: protocolbuffers/protobuf#12292.

Signed-off-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
sighingnow committed Jun 15, 2023
1 parent a8d5980 commit f2ee83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if(APPLE)
endif()

find_package(OpenSSL REQUIRED)
find_package(Protobuf REQUIRED)
find_package(Protobuf CONFIG REQUIRED)
if(Protobuf_PROTOC_EXECUTABLE)
if(NOT TARGET protobuf::protoc)
add_executable(protobuf::protoc IMPORTED)
Expand Down

0 comments on commit f2ee83f

Please sign in to comment.