Search for the ASPELL executable
This commit is contained in:
parent
5282623658
commit
bb3a4381bb
|
@ -2,6 +2,7 @@
|
||||||
# Once done this will define
|
# Once done this will define
|
||||||
#
|
#
|
||||||
# ASPELL_FOUND - system has ASPELL
|
# ASPELL_FOUND - system has ASPELL
|
||||||
|
# ASPELL_EXECUTABLE - the ASPELL executable
|
||||||
# ASPELL_INCLUDE_DIR - the ASPELL include directory
|
# ASPELL_INCLUDE_DIR - the ASPELL include directory
|
||||||
# ASPELL_LIBRARIES - The libraries needed to use ASPELL
|
# ASPELL_LIBRARIES - The libraries needed to use ASPELL
|
||||||
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
|
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
|
||||||
|
@ -22,11 +23,15 @@
|
||||||
|
|
||||||
FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
|
FIND_PATH(ASPELL_INCLUDE_DIR aspell.h )
|
||||||
|
|
||||||
|
FIND_PROGRAM(ASPELL_EXECUTABLE
|
||||||
|
NAMES aspell
|
||||||
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
|
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
|
# all listed variables are TRUE
|
||||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue