Skip to content

Commit 502312f

Browse files
authored
Ignore deprecation warnings on macOS (#31)
We're using the deprecated "Legacy Password Storage" API on macOS. Fixes #30
1 parent f0e4d49 commit 502312f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ elseif (APPLE)
4545
PRIVATE
4646
"src/keychain_mac.cpp")
4747

48+
# We're using the deprecated "Legacy Password Storage" API
49+
# (SecKeychainFindGenericPassword and friends)
50+
target_compile_options(${PROJECT_NAME}
51+
PRIVATE
52+
"-Wno-error=deprecated-declarations")
53+
4854
find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
4955
find_library(SECURITY_LIBRARY Security REQUIRED)
5056

0 commit comments

Comments
 (0)