From af3d4639e2578395656438e47dab491065a8c5fb Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Tue, 18 Jun 2019 08:10:01 +0300 Subject: [PATCH] Support OpenSSL 1.1 file names (MSI package) --- dist/msi/CMakeLists.txt | 10 ++++++++++ dist/msi/components/CommonLibs.wxs | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dist/msi/CMakeLists.txt b/dist/msi/CMakeLists.txt index 991b46b7e..abbeaf806 100644 --- a/dist/msi/CMakeLists.txt +++ b/dist/msi/CMakeLists.txt @@ -22,6 +22,14 @@ endif() find_msvc_crt_msm(TR_MSVC_CRT_MSM_FILE) +if(OPENSSL_VERSION MATCHES "^1[.]1[.]") + set(TR_OPENSSL_CRYPTO_NAME "libcrypto-1_1.dll") + set(TR_OPENSSL_SSL_NAME "libssl-1_1.dll") +else() + set(TR_OPENSSL_CRYPTO_NAME "libeay32.dll") + set(TR_OPENSSL_SSL_NAME "ssleay32.dll") +endif() + set(ICONS_DIR "${CMAKE_SOURCE_DIR}/qt/icons/hicolor") png2ico(Transmission.ico "${ICONS_DIR}/16x16/transmission-qt.png" @@ -70,6 +78,8 @@ wix_candle(${PROJECT_NAME}_OBJS "TrQmSrcDir=${TRQMSRCDIR}" "QtQmSrcDir=${QTQMSRCDIR}" "MsvcCrtMsmFile=${TR_MSVC_CRT_MSM_FILE}" + "OpenSslCryptoName=${TR_OPENSSL_CRYPTO_NAME}" + "OpenSslSslName=${TR_OPENSSL_SSL_NAME}" EXTRA_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/TransmissionConfig.wxi") diff --git a/dist/msi/components/CommonLibs.wxs b/dist/msi/components/CommonLibs.wxs index 2be30e4d0..fa84c8b99 100644 --- a/dist/msi/components/CommonLibs.wxs +++ b/dist/msi/components/CommonLibs.wxs @@ -9,10 +9,10 @@ - + - +