Link static SSL libraries.

This commit is contained in:
Chunting Gu
2019-05-29 11:08:17 +08:00
parent 113dacb9ce
commit e9f0cd97e8
+4 -2
View File
@@ -87,8 +87,10 @@ if(Boost_FOUND)
endif()
if(WEBCC_ENABLE_SSL)
set(OPENSSL_USE_STATIC_LIBS ON)
set(OPENSSL_MSVC_STATIC_RT ON)
# Commented on 20190529.
# The static libs have linkage issues with VS2015 on Win10.
# set(OPENSSL_USE_STATIC_LIBS ON)
# set(OPENSSL_MSVC_STATIC_RT ON)
find_package(OpenSSL)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})