Link with 'anl' only when building shared lib.
This commit is contained in:
parent
ac8543ac57
commit
87b052588b
@ -1012,12 +1012,14 @@ 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()
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user