aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpprestsdk/fix-find-openssl.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpprestsdk/fix-find-openssl.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpprestsdk/fix-find-openssl.patch')
-rw-r--r--vcpkg/ports/cpprestsdk/fix-find-openssl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/cpprestsdk/fix-find-openssl.patch b/vcpkg/ports/cpprestsdk/fix-find-openssl.patch
new file mode 100644
index 0000000..ec420e6
--- /dev/null
+++ b/vcpkg/ports/cpprestsdk/fix-find-openssl.patch
@@ -0,0 +1,18 @@
+diff --git a/Release/cmake/cpprest_find_openssl.cmake b/Release/cmake/cpprest_find_openssl.cmake
+index 9333663..c1df089 100644
+--- a/Release/cmake/cpprest_find_openssl.cmake
++++ b/Release/cmake/cpprest_find_openssl.cmake
+@@ -36,8 +36,11 @@ function(cpprest_find_openssl)
+ # Prefer a homebrew version of OpenSSL over the one in /usr/lib
+ file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*)
+ # Prefer the latest (make the latest one first)
+- list(REVERSE OPENSSL_ROOT_DIR)
+- list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)
++ if(OPENSSL_ROOT_DIR)
++ # Prefer the latest (make the latest one first)
++ list(REVERSE OPENSSL_ROOT_DIR)
++ list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)
++ endif()
+ endif()
+ # This should prevent linking against the system provided 0.9.8y
+ message(STATUS "OPENSSL_ROOT_DIR = ${OPENSSL_ROOT_DIR}")