1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: display an error on missing dependency in CMake (closes #916, closes #956)

This commit is contained in:
Sébastien Helleu
2019-09-15 07:49:03 +02:00
parent 9cb6857672
commit bff40e4c26
5 changed files with 43 additions and 18 deletions
+21 -8
View File
@@ -55,9 +55,10 @@ if(ENABLE_BUFLIST)
endif()
if(ENABLE_CHARSET)
# Check for iconv support.
if(ICONV_FOUND)
add_subdirectory(charset)
else()
message(SEND_ERROR "Iconv not found")
endif()
endif()
@@ -93,6 +94,8 @@ if(ENABLE_SCRIPTS AND ENABLE_PERL)
find_package(Perl)
if(PERL_FOUND)
add_subdirectory(perl)
else()
message(SEND_ERROR "Perl not found")
endif()
endif()
@@ -100,6 +103,8 @@ if(ENABLE_SCRIPTS AND ENABLE_PYTHON)
find_package(Python)
if(PYTHON_FOUND)
add_subdirectory(python)
else()
message(SEND_ERROR "Python not found")
endif()
endif()
@@ -107,6 +112,8 @@ if(ENABLE_SCRIPTS AND ENABLE_RUBY)
find_package(Ruby)
if(RUBY_FOUND)
add_subdirectory(ruby)
else()
message(SEND_ERROR "Ruby not found")
endif()
endif()
@@ -114,6 +121,8 @@ if(ENABLE_SCRIPTS AND ENABLE_LUA)
find_package(Lua)
if(LUA_FOUND)
add_subdirectory(lua)
else()
message(SEND_ERROR "Lua not found")
endif()
endif()
@@ -121,6 +130,8 @@ if(ENABLE_SCRIPTS AND ENABLE_TCL)
find_package(TCL)
if(TCL_FOUND)
add_subdirectory(tcl)
else()
message(SEND_ERROR "Tcl not found")
endif()
endif()
@@ -128,6 +139,8 @@ if(ENABLE_SCRIPTS AND ENABLE_GUILE)
find_package(Guile)
if(GUILE_FOUND)
add_subdirectory(guile)
else()
message(SEND_ERROR "Guile not found")
endif()
endif()
@@ -135,6 +148,8 @@ if(ENABLE_SCRIPTS AND ENABLE_JAVASCRIPT)
find_package(V8)
if(V8_FOUND)
add_subdirectory(javascript)
else()
message(SEND_ERROR "V8 (javascript) not found")
endif()
endif()
@@ -142,27 +157,25 @@ if(ENABLE_SCRIPTS AND ENABLE_PHP)
find_package(PHP)
if(PHP_FOUND)
add_subdirectory(php)
else()
message(SEND_ERROR "Php not found")
endif()
endif()
if(ENABLE_SPELL)
if(ENABLE_ENCHANT)
# Check for enchant libraries
find_package(ENCHANT)
if(ENCHANT_FOUND)
add_subdirectory(spell)
else()
# Check for aspell libraries
find_package(Aspell)
if(ASPELL_FOUND)
add_subdirectory(spell)
endif()
message(SEND_ERROR "Enchant not found")
endif()
else()
# Check for aspell libraries
find_package(Aspell)
if(ASPELL_FOUND)
add_subdirectory(spell)
else()
message(SEND_ERROR "Aspell not found")
endif()
endif()
endif()