From c765bbb1fd985834ff112ea3f71db2b87dfbffa7 Mon Sep 17 00:00:00 2001 From: xiphon Date: Tue, 24 Dec 2019 11:19:00 +0000 Subject: [PATCH] build: define Boost_USE_STATIC_RUNTIME for static builds --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 529b2730..1bdd6a04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,8 +84,9 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") endif() if(STATIC) - message(STATUS "Initiating static build") - set(Boost_USE_STATIC_LIBS ON) + message(STATUS "Initiating static build") + set(Boost_USE_STATIC_LIBS ON) + set(Boost_USE_STATIC_RUNTIME ON) set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") add_definitions(-DMONERO_GUI_STATIC) endif()