aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/ssl.cmake
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-02-07 15:57:23 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-02-07 16:20:22 +0100
commit6750d42ef1811cb5527f7eaa13fdbbd0cde4b8ef (patch)
tree7531d3c2bb4a1b113c1dad63ce985ccc76b34783 /cmake/ssl.cmake
parentfb369d95677b85995071e8255230c8bd7e291216 (diff)
fine tune cmake find_package usage
Diffstat (limited to 'cmake/ssl.cmake')
-rw-r--r--cmake/ssl.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake
index 53d8a1597e..83f642a675 100644
--- a/cmake/ssl.cmake
+++ b/cmake/ssl.cmake
@@ -31,6 +31,10 @@ if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
set(gRPC_INSTALL FALSE)
endif()
elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
+ # OpenSSL installation directory can be configured by setting OPENSSL_ROOT_DIR
+ # We expect to locate OpenSSL using the built-in cmake module as the openssl
+ # project itself does not provide installation support in its CMakeLists.txt
+ # See https://cmake.org/cmake/help/v3.6/module/FindOpenSSL.html
find_package(OpenSSL REQUIRED)
if(TARGET OpenSSL::SSL)