fix using OpenSSL static libs in CMake build

This commit is contained in:
FranciscoPombal 2020-05-09 02:35:12 +01:00 committed by Arvid Norberg
parent d8be9312ec
commit 605bdadeff
1 changed files with 2 additions and 2 deletions

View File

@ -487,12 +487,12 @@ if(static_runtime)
ucm_set_runtime(STATIC)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME ON)
set(OPENSSL_USE_STATIC_LIBS TRUE)
set(OPENSSL_MSVC_STATIC_RT TRUE)
set(OPENSSL_MSVC_STATIC_RT ON)
endif()
if (NOT BUILD_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS ON)
set(OPENSSL_USE_STATIC_LIBS ON)
endif()
add_library(torrent-rasterbar