Skip to content

Commit 678018b

Browse files
authored
Merge pull request #34 from seanmadden/main
Enable ARC support for apple/NSURLClient.mm
2 parents 76d92e7 + 353f9e8 commit 678018b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
116116
option (USE_OPENSSL_BACKEND "Use the openssl backend" OFF)
117117
option (USE_SCHANNEL_BACKEND "Use the schannel backend (windows-only)" OFF)
118118
option (USE_NSURL_BACKEND "Use the NSUrl backend (apple-only)" ON)
119+
120+
# Enabling ARC for apple/NSURLClient.mm
121+
set_source_files_properties(apple/NSURLClient.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc")
122+
119123
option (USE_ANDROID_BACKEND "Use the Android Java backend (Android-only)" OFF)
120124
option (USE_WININET_BACKEND "Use the WinINet backend (windows-only)" OFF)
121125

0 commit comments

Comments
 (0)