view cmake/FindHunspell.cmake @ 647:0557eea4d373

is_boolean: use trailing return syntax
author David Demelier <markand@malikania.fr>
date Wed, 01 Aug 2018 14:08:40 +0200
parents 01e01777ff50
children 5bd9424a523a
line wrap: on
line source

# FindHunspell
# ------------
#
# Find Hunspell library, this modules defines:
#
# Hunspell_INCLUDE_DIRS, where to find hunspell.hxx
# Hunspell_LIBRARIES, where to find library
# Hunspell_FOUND, if it is found

find_path(
    Hunspell_INCLUDE_DIR
    NAMES hunspell.hxx
    PATH_SUFFIXES hunspell
)
find_library(Hunspell_LIBRARY NAMES libhunspell hunspell)

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(
    Hunspell
    FOUND_VAR Hunspell_FOUND
    REQUIRED_VARS Hunspell_LIBRARY Hunspell_INCLUDE_DIR
)

set(Hunspell_LIBRARIES ${Hunspell_LIBRARY})
set(Hunspell_INCLUDE_DIRS ${Hunspell_INCLUDE_DIR})

mark_as_advanced(Hunspell_INCLUDE_DIR Hunspell_LIBRARY)