From: David Capello Date: Thu, 10 Oct 2019 23:34:52 +0000 (-0300) Subject: Disable error using deprecated functions on macOS 10.15 to calculate MD5 X-Git-Tag: v3.4.3~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2836d83c06af0cc3168889bcc2f71f791726ae36;p=thirdparty%2Flibarchive.git Disable error using deprecated functions on macOS 10.15 to calculate MD5 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a9f3d19a..7782608c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2036,6 +2036,11 @@ IF(MSVC) ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE) ENDIF(MSVC) +IF(APPLE) + # CC_MD5_Init() functions are deprecated on macOS 10.15, but we want to use them + ADD_DEFINITIONS(-Wno-deprecated-declarations) +ENDIF(APPLE) + IF(ENABLE_TEST) ADD_CUSTOM_TARGET(run_all_tests) ENDIF(ENABLE_TEST)