diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 11:05:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-20 11:05:48 +0200 |
commit | 6860aa491f3462c48c907e78ac259405b3db6d40 (patch) | |
tree | a5dc200e18edad1fcddd77321abe70fb5850e98d /cmake | |
parent | 6a118ce9402083c74d246f7a24e1592a7cac8d3f (diff) | |
download | weechat-6860aa491f3462c48c907e78ac259405b3db6d40.zip |
aspell: fix compilation with enchant version older than 1.6.0 (closes #192)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindAspell.cmake | 4 | ||||
-rw-r--r-- | cmake/FindENCHANT.cmake | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/cmake/FindAspell.cmake b/cmake/FindAspell.cmake index b70d9816d..b2f54c14b 100644 --- a/cmake/FindAspell.cmake +++ b/cmake/FindAspell.cmake @@ -42,12 +42,14 @@ find_library(ASPELL_LIBRARY ) if(ASPELL_INCLUDE_PATH AND ASPELL_LIBRARY) + set(ASPELL_FOUND TRUE) + + # check if function aspell_version_string() exists set(CMAKE_REQUIRED_INCLUDES ${ASPELL_INCLUDE_PATH}) set(CMAKE_REQUIRED_LIBRARIES ${ASPELL_LIBRARY}) check_symbol_exists(aspell_version_string "aspell.h" HAVE_ASPELL_VERSION_STRING) set(CMAKE_REQUIRED_INCLUDES) set(CMAKE_REQUIRED_LIBRARIES) - set(ASPELL_FOUND TRUE) endif() mark_as_advanced( diff --git a/cmake/FindENCHANT.cmake b/cmake/FindENCHANT.cmake index e74695fc0..dd9a90962 100644 --- a/cmake/FindENCHANT.cmake +++ b/cmake/FindENCHANT.cmake @@ -41,4 +41,11 @@ else() mark_as_advanced(ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES) + # check if function enchant_get_version() exists + set(CMAKE_REQUIRED_INCLUDES ${ENCHANT_INCLUDE_DIR}) + set(CMAKE_REQUIRED_LIBRARIES ${ENCHANT_LIBRARIES}) + check_symbol_exists(enchant_get_version "enchant.h" HAVE_ENCHANT_GET_VERSION) + set(CMAKE_REQUIRED_INCLUDES) + set(CMAKE_REQUIRED_LIBRARIES) + endif() |