From: Joel Rosdahl Date: Sat, 26 Mar 2022 09:28:44 +0000 (+0100) Subject: fix: Prefer CMake find module for hiredis package X-Git-Tag: v4.6.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f33f654f90b7cd251c09c5b8a7c2cd5ab1d7c830;p=thirdparty%2Fccache.git fix: Prefer CMake find module for hiredis package --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dc88deaa..f5cb252a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ find_package(zstd 1.1.2 MODULE REQUIRED) option(REDIS_STORAGE_BACKEND "Enable Redis secondary storage" ON) if(REDIS_STORAGE_BACKEND) option(HIREDIS_FROM_INTERNET "Download and use libhiredis from the Internet" ${HIREDIS_FROM_INTERNET_DEFAULT}) - find_package(hiredis 0.13.3 REQUIRED) + find_package(hiredis 0.13.3 MODULE REQUIRED) endif() #