--- src/CMakeLists.txt.orig 2014-11-23 18:05:43.000000000 +0300 +++ src/CMakeLists.txt 2014-11-23 18:06:07.000000000 +0300 @@ -27,7 +27,7 @@ set(crypto_src ${gcrypt_src}) endif() -if (OPENSSL_FOUND AND HAVE_OPENSSL_EC_H) +if (OPENSSL_LIB AND HAVE_OPENSSL_EC_H) set(crypto_src ${openssl_src}) endif()