We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 211dcb8 commit 09b1164Copy full SHA for 09b1164
1 file changed
cmake/SetupProtobuf.cmake
@@ -50,7 +50,10 @@ if(NOT USERVER_FORCE_DOWNLOAD_PROTOBUF)
50
if(USERVER_DOWNLOAD_PACKAGE_PROTOBUF)
51
find_package(Protobuf QUIET)
52
else()
53
- find_package(Protobuf)
+ find_package(Protobuf CONFIG QUIET)
54
+ if (NOT Protobuf_FOUND)
55
+ find_package(Protobuf)
56
+ endif()
57
if(NOT Protobuf_FOUND)
58
message(
59
FATAL_ERROR
0 commit comments