From: user Date: Sun, 26 Dec 2021 09:23:31 +0000 (+0300) Subject: Do not force static runtime for boost unless building for win32 X-Git-Tag: nvc-v0.5.9~28^2~2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=d6019ac689b043f6a786e0429a9bda07c0c3489c Do not force static runtime for boost unless building for win32 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dd80480..41f91db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,9 @@ set(CMAKE_CXX_FLAGS "/O2 /GR /EHsc") endif() set(Boost_USE_STATIC_LIBS ON) +if(WIN32) set(Boost_USE_STATIC_RUNTIME ON) +endif() find_package(Boost REQUIRED COMPONENTS atomic chrono filesystem program_options system thread) set(OPENSSL_USE_STATIC_LIBS ON) find_package(OpenSSL REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7d8f3c5..1940f5f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,7 +39,9 @@ endif() set(CMAKE_CXX_EXTENSIONS OFF) set(Boost_USE_STATIC_LIBS ON) +if(WIN32) set(Boost_USE_STATIC_RUNTIME ON) +endif() find_package(Boost REQUIRED COMPONENTS atomic chrono filesystem program_options system thread) set(OPENSSL_USE_STATIC_LIBS ON) find_package(OpenSSL REQUIRED)