Check for hunspell.hxx always fails

Kornel Benko kornel at lyx.org
Thu Nov 28 13:22:11 UTC 2019


Am Thu, 28 Nov 2019 13:38:26 +0100
schrieb pdv <pdvisschere at edpnet.be>:

> Right now the check for the presence of hunspell.hxx in 
> ConfigureChecks.cmake always fails for me (MacOS10.14, master build) 
> with the result `HAVE_HUNSPELL_CXXABI = FALSE`, although hunspell.hxx is 
> available. That's a minor issue since hunspell works anyway, but the 
> check seems useless now.

Where is it available? Here, on ubuntu, it is under /usr/include/hunspell/hunspell.hxx

> To proceed the check should include a `LINK_LIBRARIES` entry in the 
> try_compile() step.

No, not needed, see below ...

> Also the `hunspell` in the `#include 
> <hunspell/hunspell.hxx>` instruction in the test file should be removed. 
> It should be included in the `HUNSPELL_INCLUDE_DIR` definition.

Good point.

> With these changes `HAVE_HUNSPELL_CXXABI = TRUE` (supposed hunspell.hxx 
> is present).
> 
> I don't understand the
> "-DCMAKE_CXX_LINK_EXECUTABLE='${CMAKE_COMMAND} echo not linking now...'"
> entry which contained a typo anyway. It sounds like one wanted to avoid 
> the linking in which case the LINK_LIBRARIES is indeed not needed.
> 

The try_compile() normally creates an executable (e.g. compile + link)
and we want to compile only here.

> 
> Patrick

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191128/d26c233f/attachment.asc>


More information about the lyx-devel mailing list