diff options
author | Brad King <brad.king@kitware.com> | 2022-07-06 13:17:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-07-06 13:17:42 (GMT) |
commit | 4ae8018ddfa0390e8d14f7ff513f512a456e6a61 (patch) | |
tree | 2b007d928d10840b1add4a82fe9fa2231d32c812 | |
parent | b80ccea6869e7ddea6233e982c9ff4e203d393a2 (diff) | |
parent | 42199256afa566acd0a6935d3e772773d1dc18ef (diff) | |
download | CMake-4ae8018ddfa0390e8d14f7ff513f512a456e6a61.zip CMake-4ae8018ddfa0390e8d14f7ff513f512a456e6a61.tar.gz CMake-4ae8018ddfa0390e8d14f7ff513f512a456e6a61.tar.bz2 |
Merge topic 'FindOpenSSL-doc-pkg-config'
42199256af FindOpenSSL: Document use of pkg-config
475880f39b FindOpenSSL: Reformat hints documentation as definition list
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7441
-rw-r--r-- | Modules/FindOpenSSL.cmake | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake index 9278566..352c4cc 100644 --- a/Modules/FindOpenSSL.cmake +++ b/Modules/FindOpenSSL.cmake @@ -90,13 +90,25 @@ This module will set the following variables in your project: Hints ^^^^^ -Set ``OPENSSL_ROOT_DIR`` to the root directory of an OpenSSL installation. +The following variables may be set to control search behavior: -.. versionadded:: 3.4 - Set ``OPENSSL_USE_STATIC_LIBS`` to ``TRUE`` to look for static libraries. +``OPENSSL_ROOT_DIR`` + Set to the root directory of an OpenSSL installation. + +``OPENSSL_USE_STATIC_LIBS`` + .. versionadded:: 3.4 + + Set to ``TRUE`` to look for static libraries. + +``OPENSSL_MSVC_STATIC_RT`` + .. versionadded:: 3.5 + + Set to ``TRUE`` to choose the MT version of the lib. -.. versionadded:: 3.5 - Set ``OPENSSL_MSVC_STATIC_RT`` set ``TRUE`` to choose the MT version of the lib. +``ENV{PKG_CONFIG_PATH}`` + On UNIX-like systems, ``pkg-config`` is used to locate the system OpenSSL. + Set the ``PKG_CONFIG_PATH`` environment varialbe to look in alternate + locations. Useful on multi-lib systems. #]=======================================================================] macro(_OpenSSL_test_and_find_dependencies ssl_library crypto_library) |