Skip to content

Commit

Permalink
Check availability of common crypto library for mac. #384
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Apr 30, 2019
1 parent c558b1a commit f6b6f05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,13 @@ if(UNIX)
if ((MZ_PKCRYPT OR MZ_WZAES) AND NOT (MZ_OPENSSL AND OPENSSL_FOUND))

if (APPLE AND NOT MZ_BRG)
list(APPEND MINIZIP_SRC "mz_crypt_apple.c")
check_include_files(CommonCrypto/CommonCrypto.h COMMONCRYPTO_FOUND)
if (COMMONCRYPTO_FOUND)
list(APPEND MINIZIP_SRC "mz_crypt_apple.c")
else()
message(STATUS "CommonCrypto not found, using BRG instead")
set(MZ_BRG TRUE)
endif()
else()
set(MZ_BRG TRUE)
endif()
Expand Down

0 comments on commit f6b6f05

Please sign in to comment.