Skip to content

Commit c3d62a6

Browse files
committed
fix: correct wrong linking order to fix static build
1 parent aaec558 commit c3d62a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ foreach (fullmodname ${subdirlist})
258258
endif()
259259

260260
else()
261-
target_link_libraries(${modname} PUBLIC ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY} ${ZLIB_LIBRARIES})
261+
target_link_libraries(${modname} PUBLIC ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ${ZLIB_LIBRARIES})
262262
if (MINGW)
263263
target_link_libraries(${modname} PUBLIC wsock32 ws2_32 crypt32)
264264
endif ()

0 commit comments

Comments
 (0)