mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08:00

Components are added in a backward-compatible way: * ASPELL component - adds the ASPELL::ASPELL imported target * Executable component - adds the ASPELL::Executable imported target If components are not specified in find_package() call, module, by default, searches for both components and provides backward compatibility with the find_package(ASPELL) usage via ASPELL_LIBRARIES, ASPELL_INCLUDE_DIR, and ASPELL_EXECUTABLE variables. The ASPELL_DEFINITIONS variable description removed from the documentation as it was never defined by this module. Additionally added a Pspell interface check (pspell.h header file) if Aspell library provides it. It is checked separately because it might be located in a subdirectory of pspell/pspell.h and code includes it as `<pspell.h>`. Some distributions package pspell.h as part of the libpspell development package and install also libaspell development package as a dependency for BC. Added also ASPELL_VERSION variable in case aspell executable can determine it. Issue: #26811