From b39692bba42ce5577103ebb3736244d51a722eee Mon Sep 17 00:00:00 2001 From: Rafael Date: Sat, 2 Mar 2024 17:46:09 +0100 Subject: [PATCH] fix: correct wrong linking order to fix static build (#1102) --- library/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 3879d10e2f..ba47b77cf7 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -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 ()