]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : fix compile in xcode (#2311)
authorDaven Sanassy <redacted>
Mon, 5 Aug 2024 06:48:26 +0000 (07:48 +0100)
committerGitHub <redacted>
Mon, 5 Aug 2024 06:48:26 +0000 (09:48 +0300)
src/CMakeLists.txt

index 88080f75bdee56d4b3b67c2705c52eeff94681d0..6ac2255889a7f47b74da8bd09d0bd5d260e6268d 100644 (file)
@@ -54,6 +54,7 @@ if (WHISPER_COREML)
 
     set_target_properties(${TARGET} PROPERTIES
         COMPILE_FLAGS "-fobjc-arc"
+        XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
         )
     set_target_properties(${TARGET} PROPERTIES FOLDER "libs")
 endif()