Skip to content

Commit

Permalink
update deps openssl to 1.1.1d
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Jan 23, 2020
1 parent 4ccd2c5 commit 76bdeb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ set(LUA_COMPAT53_DIR deps/luv/deps/lua-compat-5.3)
if(DEFINED ENV{LUA_COMPAT53_DIR})
set(LUA_COMPAT53_DIR $ENV{LUA_COMPAT53_DIR})
endif()
include_directories(${LUA_COMPAT53_DIR})
include_directories(${LUA_COMPAT53_DIR}/c-api)

if (WithOpenSSL)
Expand Down
14 changes: 7 additions & 7 deletions deps/openssl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ else (WithSharedOpenSSL)
set(OPENSSL_CONFIGURE_COMMAND ./config ${OPENSSL_CONFIG_OPTIONS})
set(OPENSSL_BUILD_COMMAND make)
endif()

ExternalProject_Add(openssl
PREFIX openssl
URL https://www.openssl.org/source/openssl-1.1.1b.tar.gz
URL_HASH SHA256=5c557b023230413dfb0756f3137a13e6d726838ccd1430888ad15bfb2b43ea4b
URL https://www.openssl.org/source/openssl-1.1.1d.tar.gz
URL_HASH SHA256=1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
LOG_BUILD ON
BUILD_IN_SOURCE YES
BUILD_COMMAND ${OPENSSL_BUILD_COMMAND}
CONFIGURE_COMMAND ${OPENSSL_CONFIGURE_COMMAND}
INSTALL_COMMAND ""
TEST_COMMAND ""
)

set(OPENSSL_DIR ${CMAKE_BINARY_DIR}/openssl/src/openssl)
set(OPENSSL_INCLUDE ${OPENSSL_DIR}/include)

if(WIN32)
set(OPENSSL_LIB_CRYPTO ${OPENSSL_DIR}/libcrypto.lib)
set(OPENSSL_LIB_SSL ${OPENSSL_DIR}/libssl.lib)
else()
set(OPENSSL_LIB_CRYPTO ${OPENSSL_DIR}/libcrypto.a)
set(OPENSSL_LIB_SSL ${OPENSSL_DIR}/libssl.a)
endif()

add_library(openssl_ssl STATIC IMPORTED)
set_target_properties(openssl_ssl PROPERTIES IMPORTED_LOCATION ${OPENSSL_LIB_SSL})
add_library(openssl_crypto STATIC IMPORTED)
set_target_properties(openssl_crypto PROPERTIES IMPORTED_LOCATION ${OPENSSL_LIB_CRYPTO})

include_directories(${OPENSSL_INCLUDE})
list(APPEND LIB_LIST openssl_ssl openssl_crypto)
endif (WithSharedOpenSSL)
Expand Down

0 comments on commit 76bdeb6

Please sign in to comment.