summaryrefslogtreecommitdiffstats
path: root/Modules/FindASPELL.cmake
diff options
context:
space:
mode:
authorArnaud Gelas <arnaud_gelas@hms.harvard.edu>2011-06-30 16:38:07 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-07-22 21:04:27 (GMT)
commitbb3a4381bb252ce05f2bb5e9b8f7f706a28ddf21 (patch)
tree49408395a2c64950510d2cf81b208a59c5d5d759 /Modules/FindASPELL.cmake
parent528262365816923ba7caca6a3c3d870a94ba7061 (diff)
downloadCMake-bb3a4381bb252ce05f2bb5e9b8f7f706a28ddf21.zip
CMake-bb3a4381bb252ce05f2bb5e9b8f7f706a28ddf21.tar.gz
CMake-bb3a4381bb252ce05f2bb5e9b8f7f706a28ddf21.tar.bz2
Search for the ASPELL executable
Diffstat (limited to 'Modules/FindASPELL.cmake')
-rw-r--r--Modules/FindASPELL.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindASPELL.cmake b/Modules/FindASPELL.cmake
index d19fab4..713ab7e 100644
--- a/Modules/FindASPELL.cmake
+++ b/Modules/FindASPELL.cmake
@@ -2,6 +2,7 @@
# Once done this will define
#
# ASPELL_FOUND - system has ASPELL
+# ASPELL_EXECUTABLE - the ASPELL executable
# ASPELL_INCLUDE_DIR - the ASPELL include directory
# ASPELL_LIBRARIES - The libraries needed to use ASPELL
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
@@ -22,11 +23,15 @@
FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
+FIND_PROGRAM(ASPELL_EXECUTABLE
+ NAMES aspell
+)
+
FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
-# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
+# handle the QUIETLY and REQUIRED arguments and set ASPELL_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
-MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES)
+MARK_AS_ADVANCED(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)