1
0
Fork 0

Fallback to protobuf cmake config

This commit is contained in:
Ilya Fedin 2022-11-25 14:52:49 +04:00 committed by John Preston
parent 0ff8f97600
commit 4a261d8c52

View file

@ -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)