From 502312f59fdc44fa1103e67f8f17cec3affb82d9 Mon Sep 17 00:00:00 2001 From: Hannes Rantzsch Date: Sun, 22 Jan 2023 18:07:18 +0100 Subject: [PATCH] Ignore deprecation warnings on macOS (#31) We're using the deprecated "Legacy Password Storage" API on macOS. Fixes #30 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c0327a..311d593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,12 @@ elseif (APPLE) PRIVATE "src/keychain_mac.cpp") + # We're using the deprecated "Legacy Password Storage" API + # (SecKeychainFindGenericPassword and friends) + target_compile_options(${PROJECT_NAME} + PRIVATE + "-Wno-error=deprecated-declarations") + find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED) find_library(SECURITY_LIBRARY Security REQUIRED)