Require ICU for Modpython in CMake too

See #1229
This commit is contained in:
Alexey Sokolov
2016-01-16 17:21:24 +00:00
parent f585c572ab
commit 55d10ce921
+4
View File
@@ -119,6 +119,10 @@ set(HAVE_ICU "${ICU_FOUND}")
set(WANT_PERL false CACHE BOOL "Support Perl modules")
set(WANT_PYTHON false CACHE BOOL "Support Python modules")
set(WANT_PYTHON_VERSION "" CACHE STRING "Python version to use, or empty")
if(WANT_PYTHON AND NOT ICU_FOUND)
message(FATAL_ERROR "Modpython requires ZNC to be compiled with charset "
"support, but ICU library not found")
endif()
tristate_option(SWIG "Use SWIG to generate modperl and modpython")
set(search_swig false)
if(WANT_SWIG AND TRISTATE_SWIG_REQUIRED)