Cmake build: Try to find hunspell.hxx for linunx _and_ for OSX

This commit is contained in:
Kornel Benko 2019-12-04 20:23:27 +01:00
parent 201acf0279
commit 9d0548e877

View File

@ -5,7 +5,13 @@ else()
find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" ${SYSTEM_LIB_DIRS} "/usr/lib64") find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" ${SYSTEM_LIB_DIRS} "/usr/lib64")
endif() endif()
FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell.hxx")
if (NOT HUNSPELL_INCLUDE_DIR)
FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx") FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell/hunspell.hxx")
if (HUNSPELL_INCLUDE_DIR)
set(HUNSPELL_INCLUDE_DIR "${HUNSPELL_INCLUDE_DIR}/hunspell")
endif()
endif()
# handle the QUIETLY and REQUIRED arguments and # handle the QUIETLY and REQUIRED arguments and
# set HUNSPELL_FOUND to TRUE if all listed variables are TRUE # set HUNSPELL_FOUND to TRUE if all listed variables are TRUE