Link with 'anl' only when building shared lib.

This commit is contained in:
Vincent Richard 2016-04-10 19:16:44 +02:00
parent ac8543ac57
commit 87b052588b

View File

@ -1012,11 +1012,13 @@ LIST(APPEND CMAKE_REQUIRED_LIBRARIES anl)
CHECK_SYMBOL_EXISTS(getaddrinfo_a netdb.h VMIME_HAVE_GETADDRINFO_A) CHECK_SYMBOL_EXISTS(getaddrinfo_a netdb.h VMIME_HAVE_GETADDRINFO_A)
IF(VMIME_HAVE_GETADDRINFO_A) IF(VMIME_HAVE_GETADDRINFO_A)
IF(VMIME_BUILD_SHARED_LIBRARY)
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
${VMIME_LIBRARY_NAME} ${VMIME_LIBRARY_NAME}
${TARGET_LINK_LIBRARIES} ${TARGET_LINK_LIBRARIES}
anl anl
) )
ENDIF()
ENDIF() ENDIF()