From 1879ed1a6f2ec41cd35c7314493e9f8c47511aac Mon Sep 17 00:00:00 2001
From: redsky17 <rubberduckie3554@gmail.com>
Date: Fri, 26 Apr 2019 20:30:04 -0400
Subject: [PATCH] Update boost build

---
 CMakeLists.txt         | 1 +
 deps/cmake/Boost.cmake | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 945b44786..9fdfd002b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,7 @@ set_package_properties(nlohmann_json PROPERTIES
     TYPE REQUIRED
 )
 
+set(BUILD_SHARED_LIBS ON)
 set(Boost_USE_STATIC_LIBS OFF)
 set(Boost_USE_STATIC_RUNTIME OFF)
 set(Boost_USE_MULTITHREADED ON)
diff --git a/deps/cmake/Boost.cmake b/deps/cmake/Boost.cmake
index 4c18f7276..47eb723ba 100644
--- a/deps/cmake/Boost.cmake
+++ b/deps/cmake/Boost.cmake
@@ -16,7 +16,7 @@ ExternalProject_Add(
   CONFIGURE_COMMAND ${DEPS_BUILD_DIR}/boost/bootstrap.sh
     --with-libraries=random,thread,system,iostreams,atomic,chrono,date_time,regex
     --prefix=${DEPS_INSTALL_DIR}
-  BUILD_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 cxxstd=14 variant=release link=shared threading=multi --layout=system
+  BUILD_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 cxxstd=14 variant=release link=shared runtime-link=shared threading=multi --layout=system
   INSTALL_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 install
 )
 
-- 
GitLab