From 1316f3eb6d8e4d8461fe14ad1e71f80c892d8923 Mon Sep 17 00:00:00 2001 From: Ryan Qian Date: Sun, 11 Dec 2022 11:13:24 +0800 Subject: [PATCH] cmake: add support of compiling with enchant-2 for the Spell plugin --- cmake/FindENCHANT.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindENCHANT.cmake b/cmake/FindENCHANT.cmake index 3fbcb35ee..24c3ae683 100644 --- a/cmake/FindENCHANT.cmake +++ b/cmake/FindENCHANT.cmake @@ -27,11 +27,11 @@ else() find_path(ENCHANT_INCLUDE_DIR NAMES enchant++.h HINTS ${PC_ENCHANT_INCLUDEDIR} ${PC_ENCHANT_INCLUDE_DIRS} - PATH_SUFFIXES enchant + PATH_SUFFIXES enchant-2 enchant ) find_library(ENCHANT_LIBRARIES - NAMES enchant + NAMES enchant-2 enchant HINTS ${PC_ENCHANT_LIBDIR} ${PC_ENCHANT_LIBRARY_DIRS} )