Merge topic 'FindOpenSSL-root-dir'

12d6eb63 FindOpenSSL: Honor OPENSSL_ROOT_DIR everywhere (#14735)
This commit is contained in:
Brad King 2014-02-06 11:10:25 -05:00 committed by CMake Topic Stage
commit f55528186a
1 changed files with 5 additions and 4 deletions

View File

@ -59,10 +59,6 @@ if (WIN32)
"C:/OpenSSL-Win64/"
)
unset(_programfiles)
set(_OPENSSL_ROOT_HINTS_AND_PATHS
HINTS ${_OPENSSL_ROOT_HINTS}
PATHS ${_OPENSSL_ROOT_PATHS}
)
else ()
set(_OPENSSL_ROOT_HINTS
${OPENSSL_ROOT_DIR}
@ -70,6 +66,11 @@ else ()
)
endif ()
set(_OPENSSL_ROOT_HINTS_AND_PATHS
HINTS ${_OPENSSL_ROOT_HINTS}
PATHS ${_OPENSSL_ROOT_PATHS}
)
find_path(OPENSSL_INCLUDE_DIR
NAMES
openssl/ssl.h