From 2836d83c06af0cc3168889bcc2f71f791726ae36 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 10 Oct 2019 20:34:52 -0300 Subject: Disable error using deprecated functions on macOS 10.15 to calculate MD5 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a9f3d19..7782608c 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) -- cgit v1.2.1