From d74fffa363d23fc43109afc93f42f3ca0bdda48f Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 2 Aug 2009 10:44:05 +0000 Subject: [PATCH] Added hunspell library git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30826 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 5 ++++- development/cmake/src/CMakeLists.txt | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 6c873f0a7b..e53b4d33a3 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -194,7 +194,10 @@ if(use_external_libintl) add_definitions(-DHAVE_GETTEXT) endif() -find_file(HUNSPELL_FOUND "hunspell/hunspell.hxx") +find_library(HUNSPELL_LIBRARY "hunspell") +if (HUNSPELL_LIBRARY) + find_file(HUNSPELL_FOUND "hunspell/hunspell.hxx") +endif() if (HUNSPELL_FOUND) message(STATUS "----- Building with Hunspell") diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index b7bcd1082d..89786426da 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -81,6 +81,9 @@ target_link_libraries(${_lyx} ${QT_QTMAIN_LIBRARY} ${vld_dll}) +if (HUNSPELL_FOUND) + target_link_libraries(${_lyx} ${HUNSPELL_LIBRARY}) +endif() if (ASPELL_FOUND) target_link_libraries(${_lyx} ${ASPELL_LIBRARY}) endif() -- 2.39.2