Check for both names of libcrypto++

Fixes #4835
This commit is contained in:
John Maguire 2015-05-01 11:49:13 +01:00
parent dfbf6a954b
commit c0cf5e1220
2 changed files with 6 additions and 3 deletions

View File

@ -58,7 +58,10 @@ find_package(FFTW3)
pkg_check_modules(CDIO libcdio)
pkg_check_modules(CHROMAPRINT REQUIRED libchromaprint)
pkg_check_modules(CRYPTOPP libcrypto++)
pkg_check_modules(CRYPTOPP libcryptopp)
if (NOT CRYPTOPP_FOUND)
pkg_check_modules(CRYPTOPP libcrypto++)
endif ()
pkg_check_modules(GIO gio-2.0)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(GOBJECT REQUIRED gobject-2.0)

View File

@ -39,8 +39,8 @@
#endif
#ifdef HAVE_CRYPTOPP
#include <crypto++/pkcspad.h>
#include <crypto++/rsa.h>
#include <cryptopp/pkcspad.h>
#include <cryptopp/rsa.h>
#endif // HAVE_CRYPTOPP
namespace {