commit 0baeea8: Search for libzstd module

Petr Vaněk arkamar at atlas.cz
Thu Apr 7 19:07:06 UTC 2022


Author: Petr Vaněk
Date: 2022-04-06 22:35:14 +0200
URL: https://github.com/rspamd/rspamd/commit/0baeea867e833b330157c204c559476bb252a5c0 (refs/pull/4138/head)

Search for libzstd module
Default pkg-config name of zstd is libzstd.pc. Let's add it to the
MODULES list.

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6f5df3c2..76d52130d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -597,7 +597,7 @@ IF(SYSTEM_ZSTD MATCHES "OFF")
 	ADD_SUBDIRECTORY(contrib/zstd)
 ELSE()
 	ProcessPackage(LIBZSTD LIBRARY zstd INCLUDE zstd.h
-		ROOT ${LIBZSTD_ROOT_DIR} MODULES zstd)
+		ROOT ${LIBZSTD_ROOT_DIR} MODULES zstd libzstd)
 	ADD_DEFINITIONS(-DSYS_ZSTD)
 ENDIF()
 IF(ENABLE_SNOWBALL MATCHES "ON")


More information about the Commits mailing list