diff --git a/code/CMakeModules/CheckDepends.cmake b/code/CMakeModules/CheckDepends.cmake index 7ddeaac4a..ac2d8a82d 100644 --- a/code/CMakeModules/CheckDepends.cmake +++ b/code/CMakeModules/CheckDepends.cmake @@ -65,7 +65,7 @@ MACRO(CHECK_LINKED_LIBRARY MYLIBRARY OTHERLIBRARY LIBRARY_FOUND) 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}") + IF(OTOOL_LIBRARY MATCHES "${LIBNAME}") SET(${LIBRARY_FOUND} TRUE) MESSAGE(STATUS "Library ${LIBNAME} already linked to ${${MYLIBRARY}}") ENDIF(NOT OTOOL_LIBRARY MATCHES "${LIBNAME}")