1 From 52ab2095649b5951e6af77f68954209473296983 Mon Sep 17 00:00:00 2001
2 From: Sandro <sandro.jaeckel@gmail.com>
3 Date: Sat, 16 Jan 2021 15:54:05 +0100
4 Subject: [PATCH] Fix finding apple libraries
7 CMakeLists.txt | 5 +++--
8 1 file changed, 3 insertions(+), 2 deletions(-)
11 (rejected by upstream in https://github.com/Azure/azure-c-shared-utility/pull/499,
12 seems problem it's solving is nixpkgs-specific)
14 diff --git a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt
15 index 7bbfa6f3f..3567b18bc 100644
16 --- a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt
17 +++ b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt
18 @@ -120,8 +120,9 @@ endif()
21 # MACOSX only has native tls and open ssl, so use the native apple tls
22 - find_library(cf_foundation Foundation)
23 + find_library(cf_foundation CoreFoundation)
24 find_library(cf_network CFNetwork)
25 + find_library(cf_security Security)
29 @@ -581,7 +582,7 @@ endif()
33 - set(aziotsharedutil_target_libs ${aziotsharedutil_target_libs} ${cf_foundation} ${cf_network})
34 + set(aziotsharedutil_target_libs ${aziotsharedutil_target_libs} ${cf_foundation} ${cf_network} ${cf_security})