fix-find-openssl.patch (918B)
1 diff --git a/Release/cmake/cpprest_find_openssl.cmake b/Release/cmake/cpprest_find_openssl.cmake 2 index 9333663..c1df089 100644 3 --- a/Release/cmake/cpprest_find_openssl.cmake 4 +++ b/Release/cmake/cpprest_find_openssl.cmake 5 @@ -36,8 +36,11 @@ function(cpprest_find_openssl) 6 # Prefer a homebrew version of OpenSSL over the one in /usr/lib 7 file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*) 8 # Prefer the latest (make the latest one first) 9 - list(REVERSE OPENSSL_ROOT_DIR) 10 - list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR) 11 + if(OPENSSL_ROOT_DIR) 12 + # Prefer the latest (make the latest one first) 13 + list(REVERSE OPENSSL_ROOT_DIR) 14 + list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR) 15 + endif() 16 endif() 17 # This should prevent linking against the system provided 0.9.8y 18 message(STATUS "OPENSSL_ROOT_DIR = ${OPENSSL_ROOT_DIR}")