From b81801b0747a93c9d95f4c0621a1e04b8b13ee47 Mon Sep 17 00:00:00 2001 From: David Lavoie-Boutin Date: Tue, 6 Aug 2024 09:40:22 -0400 Subject: [PATCH] Support newer install path of homebrew --- Release/cmake/cpprest_find_openssl.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Release/cmake/cpprest_find_openssl.cmake b/Release/cmake/cpprest_find_openssl.cmake index 9333663607..e4dd29d692 100644 --- a/Release/cmake/cpprest_find_openssl.cmake +++ b/Release/cmake/cpprest_find_openssl.cmake @@ -35,6 +35,9 @@ function(cpprest_find_openssl) if(NOT DEFINED OPENSSL_ROOT_DIR) # Prefer a homebrew version of OpenSSL over the one in /usr/lib file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*) + if (NOT DEFINED${OPENSSL_ROOT_DIR}) + file(GLOB OPENSSL_ROOT_DIR /opt/homebrew/Cellar/openssl*/*) + endif() # Prefer the latest (make the latest one first) list(REVERSE OPENSSL_ROOT_DIR) list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)