From 79f1fa940a7f43293535cd8e497f14331c288a69 Mon Sep 17 00:00:00 2001 From: casey langen Date: Fri, 18 Feb 2022 19:20:47 -0800 Subject: [PATCH] Non-standalone build fix for macOS. --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d4f07e71..fdcf0e11a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,9 +58,10 @@ if (${BUILD_STANDALONE} MATCHES "true") find_vendor_library(LIBSSL ssl) find_vendor_library(LIBCRYPTO crypto) else() - find_library(LIBCURL NAMES curl) - find_library(LIBSSL NAMES ssl) - find_library(LIBCRYPTO NAMES crypto) + # need VENDOR_LINK_DIRECTORIES here for Darwin. + find_library(LIBCURL NAMES curl PATHS ${VENDOR_LINK_DIRECTORIES}) + find_library(LIBSSL NAMES ssl PATHS ${VENDOR_LINK_DIRECTORIES}) + find_library(LIBCRYPTO NAMES crypto PATHS ${VENDOR_LINK_DIRECTORIES}) endif() find_library(LIBZ NAMES z)