Came up when building with meta-office in layers. A patch moving hunspell to meta-oe is pending. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
From e0b2cd6d9a7339f5e73d4fe19a4a0ad07223f571 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
|
Date: Fri, 29 Jan 2016 22:23:11 +0100
|
|
Subject: [PATCH] make build of hunspell optional
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Finding hunspell is done by a taylored solution which does not seem to
|
|
support disable.
|
|
|
|
Upstream-Status: Inappropriate [configuration]
|
|
|
|
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
|
---
|
|
src/plugins/CMakeLists.txt | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
|
|
index f275f63..dbad160 100644
|
|
--- a/src/plugins/CMakeLists.txt
|
|
+++ b/src/plugins/CMakeLists.txt
|
|
@@ -35,6 +35,9 @@ endif ()
|
|
# add_subdirectory( enchant )
|
|
#endif ()
|
|
|
|
+option(BUILD_HUNSPELL "Build hunspell" OFF)
|
|
+
|
|
+if(BUILD_HUNSPELL)
|
|
find_package(HUNSPELL)
|
|
set_package_properties(HUNSPELL PROPERTIES
|
|
URL "http://hunspell.sourceforge.net/"
|
|
@@ -44,6 +47,7 @@ set_package_properties(HUNSPELL PROPERTIES
|
|
if (HUNSPELL_FOUND)
|
|
add_subdirectory( hunspell )
|
|
endif ()
|
|
+endif ()
|
|
|
|
|
|
find_package(VOIKKO)
|
|
--
|
|
2.5.0
|
|
|