Cmake build: Add LINK_LIBRARIES to check for HUNSPELL CXX ABI. Needed by XCode

The trick with faking the link command does not work with XCode
see: https://cmake.org/pipermail/cmake/2010-May/037132.html

Spotted by Patrick (pdvisschere@edpnet.be)
This commit is contained in:
Kornel Benko 2019-11-29 13:49:02 +01:00
parent 5e436ce9e5
commit 350a9daf56

View File

@ -93,7 +93,7 @@ if(HUNSPELL_FOUND)
"${HunspellTestFile}" "${HunspellTestFile}"
CMAKE_FLAGS CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=${HUNSPELL_INCLUDE_DIR}" "-DINCLUDE_DIRECTORIES:STRING=${HUNSPELL_INCLUDE_DIR}"
"-DCMAKE_CXX_LINK_EXECUTABLE='${CMAKE_COMMAD} echo not linking now...'" LINK_LIBRARIES ${HUNSPELL_LIBRARY}
OUTPUT_VARIABLE LOG2) OUTPUT_VARIABLE LOG2)
message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}") message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}")