|
|
@ -28,9 +28,9 @@ MACRO(CHECK_UNDEFINED_SYMBOL MYLIBRARY SYMBOL SYMBOL_FOUND)
|
|
|
|
IF(CMAKE_NM)
|
|
|
|
IF(CMAKE_NM)
|
|
|
|
# Use nm to check if a library is using an external symbol
|
|
|
|
# Use nm to check if a library is using an external symbol
|
|
|
|
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 " U ")
|
|
|
|
IF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
|
|
|
SET(${SYMBOL_FOUND} FALSE)
|
|
|
|
SET(${SYMBOL_FOUND} FALSE)
|
|
|
|
ENDIF(NOT NM_SYMBOL MATCHES " U ")
|
|
|
|
ENDIF(NOT NM_SYMBOL MATCHES ${SYMBOL})
|
|
|
|
ENDIF(CMAKE_NM)
|
|
|
|
ENDIF(CMAKE_NM)
|
|
|
|
ELSEIF(UNIX)
|
|
|
|
ELSEIF(UNIX)
|
|
|
|
IF(CMAKE_OBJDUMP)
|
|
|
|
IF(CMAKE_OBJDUMP)
|
|
|
|