summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-06 17:03:08 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-06 17:03:08 (GMT)
commitae48449cf05815f35631159b92fd53d62b81f907 (patch)
tree15f25d1a5c382668198c4673366f3499eb023da2 /Modules
parent14f8990a607b08effe81b14ed8a02d8cbbea5833 (diff)
downloadCMake-ae48449cf05815f35631159b92fd53d62b81f907.zip
CMake-ae48449cf05815f35631159b92fd53d62b81f907.tar.gz
CMake-ae48449cf05815f35631159b92fd53d62b81f907.tar.bz2
FindOpenSSL: Search in lib64 directories on non-Windows platforms
The upstream `openssl` build system may install libraries to `lib64` even on platforms whose conventions do not use `lib64` for distro-packaged libraries. Fixes: #22945
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenSSL.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake
index 8474e05..e0144d1 100644
--- a/Modules/FindOpenSSL.cmake
+++ b/Modules/FindOpenSSL.cmake
@@ -435,7 +435,7 @@ else()
${_OPENSSL_LIBDIR}
${_OPENSSL_LIBRARY_DIRS}
PATH_SUFFIXES
- lib
+ lib lib64
)
find_library(OPENSSL_CRYPTO_LIBRARY
@@ -447,7 +447,7 @@ else()
${_OPENSSL_LIBDIR}
${_OPENSSL_LIBRARY_DIRS}
PATH_SUFFIXES
- lib
+ lib lib64
)
mark_as_advanced(OPENSSL_CRYPTO_LIBRARY OPENSSL_SSL_LIBRARY)