Skip to content

Commit

Permalink
Ignore deprecation warnings on macOS (#31)
Browse files Browse the repository at this point in the history
We're using the deprecated "Legacy Password Storage" API on macOS.

Fixes #30
  • Loading branch information
hrantzsch committed Jan 22, 2023
1 parent f0e4d49 commit 502312f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 502312f

Please sign in to comment.