From 89ff84badf55b5415d5970e28df8440c413e1706 Mon Sep 17 00:00:00 2001 From: rti Date: Tue, 12 Apr 2011 20:08:35 +0200 Subject: [PATCH] Changed: #1109 archlinux libwww linker error --- code/CMakeModules/CheckDepends.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/CMakeModules/CheckDepends.cmake b/code/CMakeModules/CheckDepends.cmake index 893582581..951450e2b 100644 --- a/code/CMakeModules/CheckDepends.cmake +++ b/code/CMakeModules/CheckDepends.cmake @@ -30,9 +30,9 @@ MACRO(CHECK_UNDEFINED_SYMBOL MYLIBRARY SYMBOL SYMBOL_FOUND) IF(CMAKE_OBJDUMP) # Use objdump to check if a library is using an external symbol EXEC_PROGRAM(${CMAKE_OBJDUMP} ARGS "-T ${${MYLIBRARY}} | grep ${SYMBOL}" OUTPUT_VARIABLE OBJDUMP_SYMBOL) - IF(OBJDUMP_SYMBOL MATCHES "UND") + IF(NOT OBJDUMP_SYMBOL MATCHES "UND") SET(${SYMBOL_FOUND} FALSE) - ENDIF(OBJDUMP_SYMBOL MATCHES "UND") + ENDIF(NOT OBJDUMP_SYMBOL MATCHES "UND") ENDIF(CMAKE_OBJDUMP) ENDIF(WIN32) ENDMACRO(CHECK_UNDEFINED_SYMBOL) @@ -69,9 +69,9 @@ MACRO(CHECK_LINKED_LIBRARY MYLIBRARY OTHERLIBRARY LIBRARY_FOUND) # TODO: under Solaris use dump -Lv # Use objdump to check if a library is linked to another library EXEC_PROGRAM(${CMAKE_OBJDUMP} ARGS "-p ${${MYLIBRARY}} | grep ${LIBNAME}" OUTPUT_VARIABLE OBJDUMP_LIBRARY) - IF(NOT OBJDUMP_LIBRARY MATCHES "NEEDED") + IF(OBJDUMP_LIBRARY MATCHES "NEEDED") SET(${LIBRARY_FOUND} TRUE) - ENDIF(NOT OBJDUMP_LIBRARY MATCHES "NEEDED") + ENDIF(OBJDUMP_LIBRARY MATCHES "NEEDED") ENDIF(CMAKE_OBJDUMP) ENDIF(WIN32) ENDMACRO(CHECK_LINKED_LIBRARY)