From 056d9c5d0d438b28fd3a43fa7a15a26cc84644b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 18 Sep 2020 04:03:55 +0200 Subject: [PATCH] Add a check to verify that the spell checker set as the default is enabled for build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d06c9a4f..1807c474d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1262,7 +1262,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() ##### enable TDEIconLoader debugging ############