From 645aeaf5b44ada9a4bcbc5e6d7ebf17ba4a82ea4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 2 Apr 2022 01:21:15 +0200 Subject: Avoid CMake searching for gcrypt as default. * Not necessary anymore coz libnDPI has now a builtin gcrypt-light Signed-off-by: Toni Uhlig --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b82e25cc..e4752e063 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ else() endif() if(STATIC_LIBNDPI_INSTALLDIR OR BUILD_NDPI OR NDPI_NO_PKGCONFIG) - option(NDPI_WITH_GCRYPT "Link static libndpi library against libgcrypt." ON) + option(NDPI_WITH_GCRYPT "Link static libndpi library against libgcrypt." OFF) option(NDPI_WITH_PCRE "Link static libndpi library against libpcre." OFF) option(NDPI_WITH_MAXMINDDB "Link static libndpi library against libmaxminddb." OFF) else() @@ -99,7 +99,7 @@ if(NOT CROSS_COMPILE_TRIPLET STREQUAL "") set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) endif() -if(BUILD_NDPI AND NDPI_WITH_GCRYPT) +if(BUILD_NDPI) enable_testing() add_test(NAME run_tests COMMAND "${CMAKE_SOURCE_DIR}/test/run_tests.sh" -- cgit v1.2.3