diff options
author | saturneric <[email protected]> | 2024-11-27 08:53:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-27 08:53:15 +0000 |
commit | b8371af866c4ee4f2e53f0d6954c16e9b3906c17 (patch) | |
tree | 5e63d24dd63224ecfb1654a931ca518ef6d7c8c4 | |
parent | fix: disable unused features of vmime (diff) | |
download | Modules-b8371af866c4ee4f2e53f0d6954c16e9b3906c17.tar.gz Modules-b8371af866c4ee4f2e53f0d6954c16e9b3906c17.zip |
fix: undefined reference to __imp_*
-rw-r--r-- | src/m_email/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/m_email/CMakeLists.txt b/src/m_email/CMakeLists.txt index c080d86..46283bc 100644 --- a/src/m_email/CMakeLists.txt +++ b/src/m_email/CMakeLists.txt @@ -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") add_subdirectory(vmime "vmime" EXCLUDE_FROM_ALL) +if(MINGW) + target_link_libraries(vmime-static PRIVATE ws2_32) +endif() + # install dir install(TARGETS mod_email LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules") |