From 40aad988e49bab89761d7395bd1561151fe9cb27 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 29 Mar 2024 16:00:45 +0100 Subject: [PATCH] [mac] Fixes linker error for bsdiff_tests ld: warning: ignoring duplicate libraries: 'libbase.a' Undefined symbols for architecture arm64: "_SecPKCS12Import", referenced from: -[MultipartUploadTask extractIdentityWithCertData:certPassword:] in libplatform.a[2](unity_0_mm.mm.o) "_kSecImportExportPassphrase", referenced from: -[MultipartUploadTask extractIdentityWithCertData:certPassword:] in libplatform.a[2](unity_0_mm.mm.o) "_kSecImportItemCertChain", referenced from: -[MultipartUploadTask extractIdentityWithCertData:certPassword:] in libplatform.a[2](unity_0_mm.mm.o) "_kSecImportItemIdentity", referenced from: -[MultipartUploadTask extractIdentityWithCertData:certPassword:] in libplatform.a[2](unity_0_mm.mm.o) ld: symbol(s) not found for architecture arm64 Signed-off-by: Alexander Borsuk --- platform/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt index 0b18ba8cea..88f566052e 100644 --- a/platform/CMakeLists.txt +++ b/platform/CMakeLists.txt @@ -191,7 +191,13 @@ target_link_libraries(${PROJECT_NAME} $<$:Qt6::Core> $<$:Qt6::Network> $<$:Qt6::Positioning> - $<$:-framework\ Foundation -framework\ SystemConfiguration -framework\ CoreLocation -framework\ CFNetwork> + $<$: + -framework\ Foundation + -framework\ SystemConfiguration + -framework\ CoreLocation + -framework\ CFNetwork + -framework\ Security # SecPKCS12Import + > ) omim_add_test_subdirectory(platform_tests_support)