From 1f26d18ed85381b9c3c5ef749ac8e037f6bc1f34 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 2 Nov 2010 12:18:02 +0100 Subject: [PATCH] Changed: #1152 FindLibwww does not make all needed libs link to ryzom_client --- code/CMakeModules/CheckDepends.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/code/CMakeModules/CheckDepends.cmake b/code/CMakeModules/CheckDepends.cmake index 0226799d8..7ddeaac4a 100644 --- a/code/CMakeModules/CheckDepends.cmake +++ b/code/CMakeModules/CheckDepends.cmake @@ -64,6 +64,7 @@ MACRO(CHECK_LINKED_LIBRARY MYLIBRARY OTHERLIBRARY LIBRARY_FOUND) # Use otool to check if a library is linked to another library GET_FILENAME_COMPONENT(LIBNAME ${${OTHERLIBRARY}} NAME_WE) EXEC_PROGRAM(${CMAKE_OTOOL} ARGS "-L ${${MYLIBRARY}} | grep ${LIBNAME}" OUTPUT_VARIABLE OTOOL_LIBRARY) + MESSAGE(STATUS "Checking if ${LIBNAME} is linked to ${${MYLIBRARY}}") IF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}") SET(${LIBRARY_FOUND} TRUE) MESSAGE(STATUS "Library ${LIBNAME} already linked to ${${MYLIBRARY}}")