misc: get this crap building locally

Looks like my install via vcpkg sets up a different directory structure for hunspell
This commit is contained in:
Brendan Hagan
2022-06-07 00:24:17 -04:00
parent 28fbde97a6
commit 087da12893
6 changed files with 21 additions and 21 deletions
+3 -1
View File
@@ -14,8 +14,10 @@ find_package(PkgConfig)
pkg_check_modules(HUNSPELL hunspell)
if( NOT HUNSPELL_FOUND )
message("-- Cannot find Hunspell via pkg-config, checking directly...")
find_path(HUNSPELL_INCLUDE_DIRS hunspell/hunspell.hxx)
find_path(HUNSPELL_INCLUDE_DIRS hunspell.hxx)
message("-- HUNSPELL_INCLUDE_DIRS = ${HUNSPELL_INCLUDE_DIRS}")
find_library(HUNSPELL_LIBRARIES NAMES hunspell libhunspell)
message("-- HUNSPELL_LIBRARIES = ${HUNSPELL_LIBRARIES}")
if ( ${HUNSPELL_INCLUDE_DIRS} STREQUAL "HUNSPELL_INCLUDE_DIRS-NOTFOUND" )
message(FATAL_ERROR "Hunspell cannot be found")
else()