]> git.lyx.org Git - features.git/commitdiff
Added hunspell library
authorKornel Benko <kornel@lyx.org>
Sun, 2 Aug 2009 10:44:05 +0000 (10:44 +0000)
committerKornel Benko <kornel@lyx.org>
Sun, 2 Aug 2009 10:44:05 +0000 (10:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30826 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/src/CMakeLists.txt

index 6c873f0a7bcfd183590fd058aa1eaf48f9d992c5..e53b4d33a30bb2283fece9d10d50e4cb4818a206 100644 (file)
@@ -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")
index b7bcd1082d41a957bfa79b8f730548001738b780..89786426da7a858bfb1e61c1072ca16be6bbe8cc 100644 (file)
@@ -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()