]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Prefer CMake find module for hiredis package
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 26 Mar 2022 09:28:44 +0000 (10:28 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 26 Mar 2022 09:28:44 +0000 (10:28 +0100)
CMakeLists.txt

index 5dc88deaa6ee15b35093ba1dba7307f6a2320906..f5cb252a3adee2a9db062f39230d8d4868700d92 100644 (file)
@@ -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()
 
 #