1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

cmake: plugins: simplify dependency handling

Move the requirement checks within the respective plugin cmakefile.
Use REQUIRED instead of the manual FOUND check and error handling.

Note: the tcl check was only moved, since using REQUIRED  explodes in
CI.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov
2025-09-14 15:26:16 +01:00
committed by Sébastien Helleu
parent 440907e1cd
commit a413d16038
12 changed files with 99 additions and 149 deletions
+6
View File
@@ -20,6 +20,12 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(ENABLE_ENCHANT)
pkg_check_modules(ENCHANT REQUIRED enchant-2)
else()
find_package(Aspell REQUIRED)
endif()
add_library(spell MODULE
spell.c spell.h
spell-bar-item.c spell-bar-item.h