Be slient when we switch to another kind of package finding mechanism.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
parent
f2d8330b08
commit
0ec2bc7ab7
|
|
@ -29,7 +29,7 @@ endif()
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
find_package(Protobuf REQUIRED)
|
find_package(Protobuf REQUIRED)
|
||||||
find_package(cpprestsdk)
|
find_package(cpprestsdk QUIET)
|
||||||
if(cpprestsdk_FOUND)
|
if(cpprestsdk_FOUND)
|
||||||
set(CPPREST_INCLUDE_DIR)
|
set(CPPREST_INCLUDE_DIR)
|
||||||
else()
|
else()
|
||||||
|
|
@ -37,7 +37,7 @@ else()
|
||||||
find_path(CPPREST_INCLUDE_DIR NAMES cpprest/http_client.h)
|
find_path(CPPREST_INCLUDE_DIR NAMES cpprest/http_client.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(gRPC)
|
find_package(gRPC QUIET)
|
||||||
if(gRPC_FOUND)
|
if(gRPC_FOUND)
|
||||||
set(GRPC_LIBRARIES gRPC::gpr gRPC::grpc gRPC::grpc++)
|
set(GRPC_LIBRARIES gRPC::gpr gRPC::grpc gRPC::grpc++)
|
||||||
get_target_property(GRPC_CPP_PLUGIN gRPC::grpc_cpp_plugin LOCATION)
|
get_target_property(GRPC_CPP_PLUGIN gRPC::grpc_cpp_plugin LOCATION)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue