mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / os-specific / darwin / swift-corelibs / 0008-Dont-link-libcurl.patch
blob4207bf1a82f59c48a638d44928da3391fbbacecf
1 diff -u a/CoreFoundation/CMakeLists.txt b/CoreFoundation/CMakeLists.txt
2 --- a/CoreFoundation/CMakeLists.txt 1969-12-31 19:00:01.000000000 -0500
3 +++ b/CoreFoundation/CMakeLists.txt 2023-06-29 19:39:30.074449222 -0400
4 @@ -104,7 +104,6 @@
5 # URL
6 URL.subproj/CFURL.inc.h
7 URL.subproj/CFURLPriv.h
8 - URL.subproj/CFURLSessionInterface.h
9 PUBLIC_HEADERS
10 # FIXME: PrivateHeaders referenced by public headers
11 Base.subproj/CFKnownLocations.h
12 @@ -120,7 +119,6 @@
13 String.subproj/CFRegularExpression.h
14 String.subproj/CFRunArray.h
15 URL.subproj/CFURLPriv.h
16 - URL.subproj/CFURLSessionInterface.h
18 # AppServices
19 AppServices.subproj/CFNotificationCenter.h
20 @@ -280,8 +278,7 @@
21 URL.subproj/CFURL.c
22 URL.subproj/CFURLAccess.c
23 URL.subproj/CFURLComponents.c
24 - URL.subproj/CFURLComponents_URIParser.c
25 - URL.subproj/CFURLSessionInterface.c)
26 + URL.subproj/CFURLComponents_URIParser.c)
27 if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
28 target_compile_definitions(CoreFoundation
29 PRIVATE
30 @@ -341,8 +338,6 @@
31 PRIVATE
32 ${CURL_INCLUDE_DIRS})
33 elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
34 - find_package(CURL REQUIRED)
35 - target_include_directories(CoreFoundation PRIVATE ${CURL_INCLUDE_DIRS})
36 find_package(ICU COMPONENTS uc i18n data REQUIRED)
37 find_package(LibXml2 REQUIRED)
38 target_include_directories(CoreFoundation PRIVATE ${LIBXML2_INCLUDE_DIR})
39 @@ -377,7 +372,6 @@
40 ${LIBXML2_LIBRARIES})
41 elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
42 target_link_libraries(CoreFoundation PRIVATE
43 - ${CURL_LIBRARIES}
44 ICU::uc
45 ICU::i18n
46 ICU::data