]> git.lyx.org Git - lyx.git/blob - development/cmake/modules/FindHunspell.cmake
Cmake build: Correct some installation paths
[lyx.git] / development / cmake / modules / FindHunspell.cmake
1
2 if(WIN32)
3   find_library(HUNSPELL_LIBRARY "libhunspell")
4 else()
5   find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" ${SYSTEM_LIB_DIRS} "/usr/lib64")
6 endif()
7
8 FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx")
9
10 # handle the QUIETLY and REQUIRED arguments and
11 # set HUNSPELL_FOUND to TRUE if all listed variables are TRUE
12 include(FindPackageHandleStandardArgs)
13 find_package_handle_standard_args(HUNSPELL DEFAULT_MSG HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)
14
15 mark_as_advanced(HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)