mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
spell: allow overriding dictionaries locations
Works for aspell and myspell (hunspell) when using enchant.
This commit is contained in:
committed by
Sébastien Helleu
parent
d91039ebd0
commit
6b19987e7f
@@ -166,6 +166,16 @@ if(ENABLE_TESTS AND NOT ENABLE_HEADLESS)
|
||||
message(FATAL_ERROR "Headless mode is required for tests.")
|
||||
endif()
|
||||
|
||||
# Set this to override aspell's dictionaries directory
|
||||
if(ASPELL_DICT_DIR)
|
||||
add_definitions(-DASPELL_DICT_DIR="${ASPELL_DICT_DIR}")
|
||||
endif()
|
||||
|
||||
# Set this to override the myspell dictionaries directory when using enchant
|
||||
if(ENCHANT_MYSPELL_DICT_DIR)
|
||||
add_definitions(-DENCHANT_MYSPELL_DICT_DIR="${ENCHANT_MYSPELL_DICT_DIR}")
|
||||
endif()
|
||||
|
||||
# option WEECHAT_HOME
|
||||
set(WEECHAT_HOME "${WEECHAT_HOME}" CACHE
|
||||
STRING "Force a single WeeChat home directory for config, logs, scripts, etc."
|
||||
|
||||
Reference in New Issue
Block a user