From 4a261d8c524a218c43c49dc424b7919c7d0d0285 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 25 Nov 2022 14:52:49 +0400 Subject: [PATCH] Fallback to protobuf cmake config --- external/cld3/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/external/cld3/CMakeLists.txt b/external/cld3/CMakeLists.txt index a94dc1d..f351ca1 100644 --- a/external/cld3/CMakeLists.txt +++ b/external/cld3/CMakeLists.txt @@ -17,7 +17,10 @@ set(gen_loc ${cld3_loc}/build/gen) set(gen_dst ${gen_loc}/cld_3/protos) if (DESKTOP_APP_USE_PACKAGED) - find_package(Protobuf REQUIRED) + find_package(Protobuf) + if (NOT Protobuf_FOUND) + find_package(protobuf REQUIRED CONFIG) + endif() set(protoc_executable protobuf::protoc) set(protobuf_lib protobuf::libprotobuf-lite) elseif (WIN32)