From: J. Peter Mugaas Date: Mon, 19 Dec 2016 20:53:49 +0000 (-0500) Subject: Add bcrypt to libaries if BCrypt.h exists to enable Crypto-Next-Generation (CNG). X-Git-Tag: v3.3.2~52^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9439c1666ad4175f64c55bb615a9cbc8e2a2d8f6;p=thirdparty%2Flibarchive.git Add bcrypt to libaries if BCrypt.h exists to enable Crypto-Next-Generation (CNG). --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fa651eb23..d9a48fad9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -605,6 +605,9 @@ LA_CHECK_INCLUDE_FILE("wctype.h" HAVE_WCTYPE_H) LA_CHECK_INCLUDE_FILE("windows.h" HAVE_WINDOWS_H) IF(ENABLE_CNG) LA_CHECK_INCLUDE_FILE("Bcrypt.h" HAVE_BCRYPT_H) + IF(HAVE_BCRYPT_H) + LIST(APPEND ADDITIONAL_LIBS "Bcrypt") + ENDIF(HAVE_BCRYPT_H) ELSE(ENABLE_CNG) UNSET(HAVE_BCRYPT_H CACHE) ENDIF(ENABLE_CNG)