diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-09-18 04:03:55 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-03 22:48:35 +0100 |
commit | f5adb7979442fd16bc01c01702e86d849a739410 (patch) | |
tree | 965c341d6e3143ddc87ca34f9f5599a439980db7 /CMakeLists.txt | |
parent | 9ffa92f841c761d107885e8cd7996f8901378399 (diff) | |
download | tdelibs-f5adb7979442fd16bc01c01702e86d849a739410.tar.gz tdelibs-f5adb7979442fd16bc01c01702e86d849a739410.zip |
Add a check to verify that the spell checker set as the default is enabled for build.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 056d9c5d0d438b28fd3a43fa7a15a26cc84644b5)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 99d40c75f..9682c43a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1130,7 +1130,11 @@ endif( WITH_HSPELL ) ####" default spell checker ##################### + set( DEFAULT_SPELL_CHECKER "ISPELL" CACHE STRING "default spell checker" ) +if( NOT WITH_${DEFAULT_SPELL_CHECKER} ) + tde_message_fatal( "Spell checker selected as default (${DEFAULT_SPELL_CHECKER}) is not enabled to build." ) +endif() ##### find tools path ########################### |