X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcmake%2Fmodules%2FFindHunspell.cmake;h=ae63f49f780c16a827c99c1957f38c9e018ff7b7;hb=2a0ae2e7392cd80b633bdaf70ef6824725c38c22;hp=452da83d99b1dc7ffb80ac16210c58f80034b83f;hpb=9060f01aa8c9556004f08fcb091041f679464a0c;p=lyx.git diff --git a/development/cmake/modules/FindHunspell.cmake b/development/cmake/modules/FindHunspell.cmake index 452da83d99..ae63f49f78 100644 --- a/development/cmake/modules/FindHunspell.cmake +++ b/development/cmake/modules/FindHunspell.cmake @@ -2,20 +2,14 @@ if(WIN32) find_library(HUNSPELL_LIBRARY "libhunspell") else() - #find_library(HUNSPELL_LIBRARY NAME "hunspell" PATH "/usr/local/lib" "/usr/lib" NO_DEFAULT_PATH) - find_library(HUNSPELL_LIBRARY NAMES "hunspell" "hunspell-1.2" PATHS "/usr/local/lib" "/usr/lib" "/usr/lib64") + 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/hunspell.hxx") - -# 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 include(FindPackageHandleStandardArgs) find_package_handle_standard_args(HUNSPELL DEFAULT_MSG HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR) -if(HUNSPELL_FIND_REQUIRED AND NOT HUNSPELL_FOUND) - message(FATAL_ERROR "Could not find Hunspell library") -endif() - mark_as_advanced(HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR)