fix: link crypt32 via list

This commit is contained in:
2026-06-19 11:06:41 -03:00
parent 55202646ca
commit 409c41e196
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -82,6 +82,10 @@ if (TINYMITM_LOGS OR $CACHE{TINYMITM_LOGS})
target_compile_definitions(tinymitm PUBLIC TINYMITM_LOGS) target_compile_definitions(tinymitm PUBLIC TINYMITM_LOGS)
endif() endif()
if (WIN32)
target_link_libraries(tinymitm PRIVATE crypt32)
endif()
# ------------------------------ # ------------------------------
# test # test
# ------------------------------ # ------------------------------
-1
View File
@@ -13,7 +13,6 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#include <wincrypt.h> #include <wincrypt.h>
#pragma comment(lib, "crypt32.lib")
#endif #endif
/* /*