Link static SSL libraries.
This commit is contained in:
+4
-2
@@ -87,8 +87,10 @@ if(Boost_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WEBCC_ENABLE_SSL)
|
if(WEBCC_ENABLE_SSL)
|
||||||
set(OPENSSL_USE_STATIC_LIBS ON)
|
# Commented on 20190529.
|
||||||
set(OPENSSL_MSVC_STATIC_RT ON)
|
# 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)
|
find_package(OpenSSL)
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
|
|||||||
Reference in New Issue
Block a user