[LyX/master] Cmake build: Add LINK_LIBRARIES to check for HUNSPELL CXX ABI. Needed by XCode

Kornel Benko kornel at lyx.org
Fri Nov 29 12:39:21 UTC 2019


commit 350a9daf567d7f39f0a5afd0991a697241413e80
Author: Kornel Benko <kornel at lyx.org>
Date:   Fri Nov 29 13:49:02 2019 +0100

    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 at edpnet.be)
---
 development/cmake/ConfigureChecks.cmake |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/development/cmake/ConfigureChecks.cmake b/development/cmake/ConfigureChecks.cmake
index f536c80..ea74b1e 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}")


More information about the lyx-cvs mailing list