From: Kornel Benko Date: Sun, 2 Aug 2009 10:44:05 +0000 (+0000) Subject: Added hunspell library X-Git-Tag: 2.0.0~5870 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d74fffa363d23fc43109afc93f42f3ca0bdda48f;p=features.git Added hunspell library git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30826 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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()