From f1e1b6cc28534d087def0bf0402c8dea2b2fe774 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 9 Apr 2021 23:56:09 +0200 Subject: [PATCH] remove boost from runtime dependencies --- CMakeLists.txt | 4 ++-- README.md | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45840ce..2a5a9f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,11 +58,11 @@ target_include_directories(BeamMP-Server PUBLIC ${Boost_INCLUDE_DIRS} ${LUA_INCL find_package(OpenSSL REQUIRED) if (UNIX) - target_link_libraries(BeamMP-Server z pthread stdc++fs ${Boost_LINK_DIRS} ${LUA_LIBRARIES} dl crypto ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} commandline sioclient_tls) + target_link_libraries(BeamMP-Server z pthread stdc++fs ${LUA_LIBRARIES} crypto ${OPENSSL_LIBRARIES} commandline sioclient_tls) elseif (WIN32) include(FindLua) find_package(ZLIB REQUIRED) find_package(RapidJSON CONFIG REQUIRED) target_include_directories(BeamMP-Server PRIVATE ${RAPIDJSON_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) - target_link_libraries(BeamMP-Server PRIVATE ws2_32 ZLIB::ZLIB ${LUA_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} commandline sioclient_tls) + target_link_libraries(BeamMP-Server PRIVATE ws2_32 ZLIB::ZLIB ${LUA_LIBRARIES} ${OPENSSL_LIBRARIES} commandline sioclient_tls) endif () diff --git a/README.md b/README.md index 9004817..cceeb0f 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,10 @@ These package names are in the debian / ubuntu style. Feel free to PR your own g You can also use any version of `libluajit`, but the same applies regarding the version. - `libz-dev` - `rapidjson-dev` -- `libboost1.70-dev` - - If your distro doesn't have 1.7x version of libboost, you'll have to compile it from source or find another way to get it for your distro. - `libopenssl-dev` +**If** you're building it from source, you'll need `libboost1.70-dev` as well. + ### How to build On windows. use git-bash for these commands.