Merge pull request #2684

c765bbb build: define Boost_USE_STATIC_RUNTIME for static builds (xiphon)
This commit is contained in:
luigi1111 2020-01-02 10:47:44 -05:00
commit 525822f391
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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()