[LyX/master] Cmake build: Remove unneeded hunspell path from configure test
skostysh at lyx.org
Thu Dec 5 01:44:56 UTC 2019
On Wed, Dec 04, 2019 at 08:24:42PM +0100, Kornel Benko wrote:
> Am Wed, 4 Dec 2019 12:22:09 -0500
> schrieb Scott Kostyshak <skostysh at lyx.org>:
> > /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:362:43: error: ‘int
> > Hunspell::spell(const char*, int*, char**)’ is deprecated
> > [-Werror=deprecated-declarations] 362 | if (h->spell(word_to_check.c_str(), &info))
> > | ^ In file included
> > from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31: /usr/include/hunspell/hunspell.hxx:131:20:
> > note: declared here 131 | H_DEPRECATED int spell(const char* word, int* info = NULL,
> > char** root = NULL); | ^~~~~
> > Before this commit, the cmake command output the following:
> > HAVE_HUNSPELL_CXXABI = TRUE
> > With this commit, the cmake command outputs the following:
> > HAVE_HUNSPELL_CXXABI = FALSE
> > There are no other differences in the output of the cmake command.
> Same as here if using external hunspell.
> The problem is that the found hunspell directory is (in our case) '/usr/include' and not
> '/usr/include/hunspell'. This is OK for XCode, but not for us.
> Should be fixed.
Thanks for the explanation and quick fix. Works well.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: not available
More information about the lyx-devel