Skip to content

Commit e8c01fe

Browse files
committed
macOS: CC_MD4 is deprecated, compile with -Wno-deprecated
1 parent 5cbdf2a commit e8c01fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ IF(CRYPT STREQUAL "commoncrypto")
8585
ADD_DEFINITIONS(-DCRYPT_COMMONCRYPTO)
8686
FILE(GLOB NTLM_SRC_CRYPT "${PATH_SRC}/crypt_commoncrypto.c")
8787

88+
# CC_MD4 has been deprecated in macOS 10.15.
89+
SET_SOURCE_FILES_PROPERTIES("${PATH_SRC}/crypt_commoncrypto.c" COMPILE_FLAGS "-Wno-deprecated")
90+
8891
ADD_FEATURE_INFO(CRYPT ON "using macOS CommonCrypto support")
8992
ELSEIF(CRYPT STREQUAL "mbedtls")
9093
FIND_PACKAGE(mbedTLS)

0 commit comments

Comments
 (0)