diff --git a/nasl/CMakeLists.txt b/nasl/CMakeLists.txt index 845cd1ac9c..890a2843b2 100644 --- a/nasl/CMakeLists.txt +++ b/nasl/CMakeLists.txt @@ -84,7 +84,7 @@ if (NETSNMP) endif (NETSNMP) message (STATUS "Looking for libgcrypt...") -find_library (GCRYPT gcrypt) +pkg_check_modules (GCRYPT REQUIRED gcrypt) message (STATUS "Looking for libgcrypt... ${GCRYPT}") if (NOT GCRYPT) message (SEND_ERROR "The libgcrypt library is required.") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24b5b09943..da6a37f716 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,7 +19,7 @@ pkg_check_modules (GLIB REQUIRED glib-2.0>=2.42) pkg_check_modules (LIBBSD REQUIRED libbsd) message (STATUS "Looking for libgcrypt...") -find_library (GCRYPT gcrypt) +pkg_check_modules (GCRYPT REQUIRED gcrypt) if (NOT GCRYPT) message (SEND_ERROR "The libgcrypt library is required.") else (NOT GCRYPT)