Changed: #1152 FindLibwww does not make all needed libs link to ryzom_client
This commit is contained in:
parent
22e746841f
commit
f487e0ba07
1 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@ MACRO(CHECK_UNDEFINED_SYMBOL MYLIBRARY SYMBOL SYMBOL_FOUND)
|
||||||
EXEC_PROGRAM(${CMAKE_NM} ARGS "-gu ${${MYLIBRARY}} | grep ${SYMBOL}" OUTPUT_VARIABLE NM_SYMBOL)
|
EXEC_PROGRAM(${CMAKE_NM} ARGS "-gu ${${MYLIBRARY}} | grep ${SYMBOL}" OUTPUT_VARIABLE NM_SYMBOL)
|
||||||
IF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
IF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
||||||
SET(${SYMBOL_FOUND} FALSE)
|
SET(${SYMBOL_FOUND} FALSE)
|
||||||
|
MESSAGE(STATUS "Undefined symbol ${SYMBOL} detected in ${${MYLIBRARY}}")
|
||||||
ENDIF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
ENDIF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
||||||
ENDIF(CMAKE_NM)
|
ENDIF(CMAKE_NM)
|
||||||
ELSEIF(UNIX)
|
ELSEIF(UNIX)
|
||||||
|
@ -64,7 +65,8 @@ MACRO(CHECK_LINKED_LIBRARY MYLIBRARY OTHERLIBRARY LIBRARY_FOUND)
|
||||||
GET_FILENAME_COMPONENT(LIBNAME ${${OTHERLIBRARY}} NAME_WE)
|
GET_FILENAME_COMPONENT(LIBNAME ${${OTHERLIBRARY}} NAME_WE)
|
||||||
EXEC_PROGRAM(${CMAKE_OTOOL} ARGS "-L ${${MYLIBRARY}} | grep ${LIBNAME}" OUTPUT_VARIABLE OTOOL_LIBRARY)
|
EXEC_PROGRAM(${CMAKE_OTOOL} ARGS "-L ${${MYLIBRARY}} | grep ${LIBNAME}" OUTPUT_VARIABLE OTOOL_LIBRARY)
|
||||||
IF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}")
|
IF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}")
|
||||||
SET(${LIBRARY_FOUND} FALSE)
|
SET(${LIBRARY_FOUND} TRUE)
|
||||||
|
MESSAGE(STATUS "Library ${LIBNAME} already linked to ${${MYLIBRARY}}")
|
||||||
ENDIF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}")
|
ENDIF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}")
|
||||||
ENDIF(CMAKE_OTOOL)
|
ENDIF(CMAKE_OTOOL)
|
||||||
ELSEIF(UNIX)
|
ELSEIF(UNIX)
|
||||||
|
|
Loading…
Reference in a new issue