From b88af6d39f6f3de252aff81f4f5092ed29f3623e Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Tue, 24 Jan 2017 11:38:30 +0100 Subject: [PATCH] Force building with static boost (like the pre-built versions) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d6fd662..a7f2770a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,9 @@ endif (WIN32) include_directories (${CMAKE_SOURCE_DIR}) +set(Boost_USE_STATIC_LIBS ON) +set(Boost_USE_MULTITHREADED ON) +set(Boost_USE_STATIC_RUNTIME ON) find_package (Boost 1.57.0 REQUIRED COMPONENTS filesystem system log log_setup thread program_options regex chrono atomic) include_directories (${Boost_INCLUDE_DIR})