cmake: remove now unused HUNSPELL module

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-10-03 01:09:39 +03:00
parent 955b539843
commit 1a5c1be073
2 changed files with 0 additions and 44 deletions

View file

@ -2,7 +2,6 @@
set(module_install_dir ${KDE4_DATA_INSTALL_DIR}/cmake/modules)
# maybe FindHUNSPELL.cmake doesn't have to be installed ?
# This variable doesn't actually do anything, but it's probably a good idea
# to have it around, so there is a place where the modules which are not installed
# are listed explicitly:
@ -35,7 +34,6 @@ set(cmakeFiles
FindGpgme.cmake
FindGphoto2.cmake
FindGSSAPI.cmake
FindHUNSPELL.cmake
FindKDE4Internal.cmake
FindKDE4Workspace.cmake
FindKSane.cmake

View file

@ -1,42 +0,0 @@
# Try to find HUNSPELL, once done this will define:
#
# HUNSPELL_FOUND - system has HUNSPELL
# HUNSPELL_INCLUDE_DIR - the HUNSPELL include directory
# HUNSPELL_LIBRARIES - the libraries needed to use HUNSPELL
# HUNSPELL_DEFINITIONS - compiler switches required for using HUNSPELL
#
# Copyright (c) 2020 Ivailo Monev <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if(NOT WIN32)
include(FindPkgConfig)
pkg_check_modules(PC_HUNSPELL QUIET hunspell)
set(HUNSPELL_INCLUDE_DIR ${PC_HUNSPELL_INCLUDE_DIRS})
set(HUNSPELL_LIBRARIES ${PC_HUNSPELL_LIBRARIES})
endif()
set(HUNSPELL_VERSION ${PC_HUNSPELL_VERSION})
set(HUNSPELL_DEFINITIONS ${PC_HUNSPELL_CFLAGS_OTHER})
if(NOT HUNSPELL_INCLUDE_DIR OR NOT HUNSPELL_LIBRARIES)
find_path(HUNSPELL_INCLUDE_DIR
NAMES hunspell/hunspell.hxx
HINTS $ENV{HUNSPELLDIR}/include
)
find_library(HUNSPELL_LIBRARIES
NAMES hunspell hunspell-1.7 hunspell-1.6 hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2
HINTS $ENV{HUNSPELLDIR}/lib
)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(HUNSPELL
VERSION_VAR HUNSPELL_VERSION
REQUIRED_VARS HUNSPELL_LIBRARIES HUNSPELL_INCLUDE_DIR
)
mark_as_advanced(HUNSPELL_INCLUDE_DIR HUNSPELL_LIBRARIES)