From 5f187282e20d4d2aec4ce1cdae30b99088b5321a Mon Sep 17 00:00:00 2001 From: ShrBox <53301243+ShrBox@users.noreply.github.com> Date: Fri, 2 Sep 2022 23:00:15 +0800 Subject: [PATCH] Fix linker problem (#750) --- LiteLoader/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LiteLoader/CMakeLists.txt b/LiteLoader/CMakeLists.txt index 909e0a7d8e..0fc123acea 100644 --- a/LiteLoader/CMakeLists.txt +++ b/LiteLoader/CMakeLists.txt @@ -56,15 +56,15 @@ add_library(mysql STATIC IMPORTED) set_property(TARGET mysql PROPERTY IMPORTED_LOCATION "${PROJECT_SOURCE_DIR}/Lib/third-party/mysql/mysqlclient.lib") target_link_libraries(LiteLoader sqlitecpp sqlite3 mysql - "${PROJECT_SOURCE_DIR}/Lib/bedrock_server_api.lib" - "${PROJECT_SOURCE_DIR}/Lib/bedrock_server_var.lib" - LLPreLoader + "${PROJECT_SOURCE_DIR}/Lib/third-party/leveldb/leveldb.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/openssl/libcrypto.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/openssl/libssl.lib" - "${PROJECT_SOURCE_DIR}/Lib/third-party/leveldb/leveldb.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/compact_enc_det/ced.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/dyncall/dyncall_s.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/dyncall/dyncallback_s.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/dyncall/dynload_s.lib" "${PROJECT_SOURCE_DIR}/Lib/third-party/compact_enc_det/ced.lib" - "${PROJECT_SOURCE_DIR}/Lib/third-party/dbghelp/dbghelp.lib") + "${PROJECT_SOURCE_DIR}/Lib/third-party/dbghelp/dbghelp.lib" + "${PROJECT_SOURCE_DIR}/Lib/bedrock_server_api.lib" + "${PROJECT_SOURCE_DIR}/Lib/bedrock_server_var.lib" + LLPreLoader)