Skip to content

Commit 6ebb472

Browse files
authored
Prioritize ${OPENSSL_ROOT_DIR} over system path (#538)
This commit reorders the locations where CMake will look for openssl, starting with ${OPENSSL_ROOT_DIR} and then proceeding to system install locations. This allows the user to provide a different Openssl version with -DOPENSSL_ROOT_DIR=<path/to/openssl>
1 parent 5a326f7 commit 6ebb472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/FindOpenSSL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ if (WIN32)
8282
unset(_programfiles)
8383
else ()
8484
set(_OPENSSL_ROOT_HINTS
85-
/usr/local/opt/openssl
8685
${OPENSSL_ROOT_DIR}
86+
/usr/local/opt/openssl
8787
ENV OPENSSL_ROOT_DIR
8888
)
8989
endif ()

0 commit comments

Comments
 (0)