aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-12-24 11:19:00 +0000
committerxiphon <xiphon@protonmail.com>2019-12-24 11:25:17 +0000
commitc765bbb1fd985834ff112ea3f71db2b87dfbffa7 (patch)
tree3c304a6972061cc06ca5206a6eb34372c30cca00
parent43f378b7d282fe595f681c3b1a9f27c97255f70e (diff)
downloadmonzero-gui-c765bbb1fd985834ff112ea3f71db2b87dfbffa7.tar.gz
monzero-gui-c765bbb1fd985834ff112ea3f71db2b87dfbffa7.tar.xz
monzero-gui-c765bbb1fd985834ff112ea3f71db2b87dfbffa7.zip
build: define Boost_USE_STATIC_RUNTIME for static builds
-rw-r--r--CMakeLists.txt5
1 files 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()