Skip to content

Commit

Permalink
fix: correct wrong linking order to fix static build (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syping authored Mar 2, 2024
1 parent aaec558 commit b39692b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ foreach (fullmodname ${subdirlist})
endif()

else()
target_link_libraries(${modname} PUBLIC ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY} ${ZLIB_LIBRARIES})
target_link_libraries(${modname} PUBLIC ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ${ZLIB_LIBRARIES})
if (MINGW)
target_link_libraries(${modname} PUBLIC wsock32 ws2_32 crypt32)
endif ()
Expand Down

0 comments on commit b39692b

Please sign in to comment.