mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
Revert "fix: use unsecure version of gRPC"
This reverts commit e784dcf919
.
This commit is contained in:
parent
ec4035f524
commit
16e5ae9b6b
@ -2,16 +2,16 @@ find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin)
|
||||
|
||||
if(MSVC)
|
||||
find_package(gRPC CONFIG REQUIRED)
|
||||
set(QV2RAY_BACKEND_LIBRARY c-ares::cares gRPC::gpr gRPC::grpc_unsecure gRPC::grpc++_unsecure gRPC::grpc++_alts)
|
||||
set(QV2RAY_BACKEND_LIBRARY c-ares::cares gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc++_alts)
|
||||
elseif(UNIX)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
if(UNIX AND NOT APPLE)
|
||||
pkg_check_modules(GRPC REQUIRED grpc++_unsecure grpc_unsecure)
|
||||
pkg_check_modules(GRPC REQUIRED grpc++ grpc)
|
||||
set(QV2RAY_BACKEND_LIBRARY ${GRPC_LIBRARIES})
|
||||
else()
|
||||
find_library(UPB_LIBRARY NAMES upb)
|
||||
find_library(ADDRESS_SORTING NAMES address_sorting)
|
||||
pkg_check_modules(GRPC REQUIRED grpc++_unsecure grpc_unsecure gpr)
|
||||
pkg_check_modules(GRPC REQUIRED grpc++ grpc gpr)
|
||||
set(QV2RAY_BACKEND_LIBRARY ${GRPC_LINK_LIBRARIES} ${UPB_LIBRARY} ${ADDRESS_SORTING})
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user