summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindAspell.cmake4
-rw-r--r--cmake/FindENCHANT.cmake7
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()