Browse Source

Merge pull request #34 from seanmadden/main

Enable ARC support for apple/NSURLClient.mm
Sasha Szpakowski 10 months ago
parent
commit
678018bdcf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/CMakeLists.txt

+ 4 - 0
src/CMakeLists.txt

@@ -116,6 +116,10 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
 	option (USE_OPENSSL_BACKEND "Use the openssl backend" OFF)
 	option (USE_OPENSSL_BACKEND "Use the openssl backend" OFF)
 	option (USE_SCHANNEL_BACKEND "Use the schannel backend (windows-only)" OFF)
 	option (USE_SCHANNEL_BACKEND "Use the schannel backend (windows-only)" OFF)
 	option (USE_NSURL_BACKEND "Use the NSUrl backend (apple-only)" ON)
 	option (USE_NSURL_BACKEND "Use the NSUrl backend (apple-only)" ON)
+
+	# Enabling ARC for apple/NSURLClient.mm
+	set_source_files_properties(apple/NSURLClient.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc")
+
 	option (USE_ANDROID_BACKEND "Use the Android Java backend (Android-only)" OFF)
 	option (USE_ANDROID_BACKEND "Use the Android Java backend (Android-only)" OFF)
 	option (USE_WININET_BACKEND "Use the WinINet backend (windows-only)" OFF)
 	option (USE_WININET_BACKEND "Use the WinINet backend (windows-only)" OFF)