diff --git a/CMakeLists.txt b/CMakeLists.txt index a44021cda7..fec59f2fb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2023,7 +2023,9 @@ CHECK_CRYPTO("MD5;RMD160;SHA1;SHA256;SHA384;SHA512" NETTLE) CHECK_CRYPTO("MD5;RMD160;SHA1;SHA256;SHA384;SHA512" OPENSSL) # Libmd has to be probed after OpenSSL. -CHECK_CRYPTO("MD5;RMD160;SHA1;SHA256;SHA512" LIBMD) +if(LIBMD) + CHECK_CRYPTO("MD5;RMD160;SHA1;SHA256;SHA512" LIBMD) +endif() CHECK_CRYPTO_WIN("MD5;SHA1;SHA256;SHA384;SHA512")