|
|
|
@ -18,7 +18,7 @@ |
|
|
|
|
|
|
|
|
|
if(gRPC_SSL_PROVIDER STREQUAL "module") |
|
|
|
|
if(NOT BORINGSSL_ROOT_DIR) |
|
|
|
|
set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl) |
|
|
|
|
set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl-with-bazel) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt") |
|
|
|
@ -40,10 +40,10 @@ if(gRPC_SSL_PROVIDER STREQUAL "module") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl) |
|
|
|
|
add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl-with-bazel) |
|
|
|
|
if(TARGET ssl) |
|
|
|
|
set(_gRPC_SSL_LIBRARIES ssl) |
|
|
|
|
set(_gRPC_SSL_INCLUDE_DIR ${BORINGSSL_ROOT_DIR}/include) |
|
|
|
|
set(_gRPC_SSL_LIBRARIES ssl crypto) |
|
|
|
|
set(_gRPC_SSL_INCLUDE_DIR ${BORINGSSL_ROOT_DIR}/src/include) |
|
|
|
|
if(gRPC_INSTALL AND _gRPC_INSTALL_SUPPORTED_FROM_MODULE) |
|
|
|
|
install(TARGETS ssl crypto EXPORT gRPCTargets |
|
|
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR} |
|
|
|
|