Fallback to protobuf cmake config
This commit is contained in:
parent
0ff8f97600
commit
4a261d8c52
1 changed files with 4 additions and 1 deletions
5
external/cld3/CMakeLists.txt
vendored
5
external/cld3/CMakeLists.txt
vendored
|
|
@ -17,7 +17,10 @@ set(gen_loc ${cld3_loc}/build/gen)
|
||||||
set(gen_dst ${gen_loc}/cld_3/protos)
|
set(gen_dst ${gen_loc}/cld_3/protos)
|
||||||
|
|
||||||
if (DESKTOP_APP_USE_PACKAGED)
|
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(protoc_executable protobuf::protoc)
|
||||||
set(protobuf_lib protobuf::libprotobuf-lite)
|
set(protobuf_lib protobuf::libprotobuf-lite)
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue