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:
committed by
Sébastien Helleu
parent
440907e1cd
commit
a413d16038
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user