mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
a47dec6b4a
(cherry picked from commit 9fdc00fe2a
)
22 lines
741 B
CMake
22 lines
741 B
CMake
|
|
if(WIN32)
|
|
find_library(HUNSPELL_LIBRARY "libhunspell")
|
|
else()
|
|
find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" ${SYSTEM_LIB_DIRS} "/usr/lib64")
|
|
endif()
|
|
|
|
FIND_PATH(HUNSPELL_INCLUDE_DIR "hunspell.hxx")
|
|
if (NOT HUNSPELL_INCLUDE_DIR)
|
|
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
|
|
# set HUNSPELL_FOUND to TRUE if all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(HUNSPELL DEFAULT_MSG HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)
|