fix: undefined reference to __imp_*

This commit is contained in:
saturneric 2024-11-27 09:53:15 +01:00
parent 46d2b31ea0
commit b8371af866

View File

@ -45,6 +45,10 @@ set(VMIME_HAVE_MESSAGING_PROTO_MAILDIR OFF CACHE BOOL "No Maildir protocol")
set(VMIME_HAVE_MESSAGING_PROTO_SENDMAIL OFF CACHE BOOL "No Sendmail protocol") set(VMIME_HAVE_MESSAGING_PROTO_SENDMAIL OFF CACHE BOOL "No Sendmail protocol")
add_subdirectory(vmime "vmime" EXCLUDE_FROM_ALL) add_subdirectory(vmime "vmime" EXCLUDE_FROM_ALL)
if(MINGW)
target_link_libraries(vmime-static PRIVATE ws2_32)
endif()
# install dir # install dir
install(TARGETS mod_email install(TARGETS mod_email
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules") LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules")