]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Prefer CMake find module for zstd package (#1030)
authorCristian Adam <cristian.adam@gmail.com>
Sat, 26 Mar 2022 09:24:09 +0000 (10:24 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Mar 2022 09:24:09 +0000 (10:24 +0100)
CMakeLists.txt

index 1616b294628f1d3b7339c8ed1403b85915ac3e71..5dc88deaa6ee15b35093ba1dba7307f6a2320906 100644 (file)
@@ -96,7 +96,7 @@ if(MSVC AND NOT CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg|conan")
 endif()
 
 option(ZSTD_FROM_INTERNET "Download and use libzstd from the Internet" ${ZSTD_FROM_INTERNET_DEFAULT})
-find_package(zstd 1.1.2 REQUIRED)
+find_package(zstd 1.1.2 MODULE REQUIRED)
 
 option(REDIS_STORAGE_BACKEND "Enable Redis secondary storage" ON)
 if(REDIS_STORAGE_BACKEND)