From: Kornel Benko Date: Fri, 29 Nov 2019 12:49:02 +0000 (+0100) Subject: Cmake build: Add LINK_LIBRARIES to check for HUNSPELL CXX ABI. Needed by XCode X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aaec85d029810c31e92a43126504484d184f739d;p=features.git 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) --- diff --git a/development/cmake/ConfigureChecks.cmake b/development/cmake/ConfigureChecks.cmake index f536c80a48..ea74b1e198 100644 --- a/development/cmake/ConfigureChecks.cmake +++ b/development/cmake/ConfigureChecks.cmake @@ -93,8 +93,8 @@ if(HUNSPELL_FOUND) "${HunspellTestFile}" CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${HUNSPELL_INCLUDE_DIR}" - "-DCMAKE_CXX_LINK_EXECUTABLE='${CMAKE_COMMAD} echo not linking now...'" - OUTPUT_VARIABLE LOG2) + LINK_LIBRARIES ${HUNSPELL_LIBRARY} + OUTPUT_VARIABLE LOG2) message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}") #message(STATUS "LOG2 = ${LOG2}")