commit 0be20c4: [Minor] Properly search for fasttext include

Vsevolod Stakhov vsevolod at rspamd.com
Mon Nov 13 11:00:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-11-13 10:55:43 +0000
URL: https://github.com/rspamd/rspamd/commit/0be20c43fad8ebe466e69496d8217658e3814426 (HEAD -> master)

[Minor] Properly search for fasttext include

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b8465903..5aab5969e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -242,8 +242,7 @@ ProcessPackage(SODIUM LIBRARY sodium INCLUDE sodium.h
         ROOT ${LIBSODIUM_ROOT_DIR} MODULES libsodium>=1.0.0)
 
 if (ENABLE_FASTTEXT MATCHES "ON")
-    ProcessPackage(FASTTEXT LIBRARY fasttext INCLUDE fasttext.h
-            INCLUDE_SUFFIXES include/fasttext
+    ProcessPackage(FASTTEXT LIBRARY fasttext INCLUDE fasttext/fasttext.h
             ROOT ${FASTTEXT_ROOT_DIR} MODULES fasttext)
     SET(WITH_FASTTEXT "1")
 endif ()


More information about the Commits mailing list