Skip to content

Commit 09b1164

Browse files
committed
fix protobuf setup
1 parent 211dcb8 commit 09b1164

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/SetupProtobuf.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ if(NOT USERVER_FORCE_DOWNLOAD_PROTOBUF)
5050
if(USERVER_DOWNLOAD_PACKAGE_PROTOBUF)
5151
find_package(Protobuf QUIET)
5252
else()
53-
find_package(Protobuf)
53+
find_package(Protobuf CONFIG QUIET)
54+
if (NOT Protobuf_FOUND)
55+
find_package(Protobuf)
56+
endif()
5457
if(NOT Protobuf_FOUND)
5558
message(
5659
FATAL_ERROR

0 commit comments

Comments
 (0)