Skip to content

Commit 6f081f8

Browse files
committed
fix: add missing windows crypto libraries for mingw
- link Wintrust and Crypt32 libraries for mingw builds - required for cryptographic functionality on windows
1 parent 7e7709f commit 6f081f8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/core/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,9 @@ target_precompile_headers(${LIBRARY_TARGET}
8282

8383
# link for different platforms
8484
if(MINGW)
85-
message(STATUS "Link GPG Static Library For MINGW")
8685
target_link_libraries(${LIBRARY_TARGET} PUBLIC wsock32)
86+
target_link_libraries(${LIBRARY_TARGET} PRIVATE Wintrust Crypt32)
8787
elseif(APPLE)
88-
message(STATUS "Link GPG Static Library For macOS")
8988
else()
90-
# linux
91-
message(STATUS "Link GPG Static Library For Unix")
9289
target_link_libraries(${LIBRARY_TARGET} PUBLIC pthread dl)
9390
endif()

0 commit comments

Comments
 (0)