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)