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"
"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")
<File DiskId="1" KeyPath="yes" Name="libcurl.dll" />
</Component>
<Component Id="dll.openssl.crypto">
- <File DiskId="1" KeyPath="yes" Name="libeay32.dll" />
+ <File DiskId="1" KeyPath="yes" Name="$(var.OpenSslCryptoName)" />
</Component>
<Component Id="dll.openssl.ssl">
- <File DiskId="1" KeyPath="yes" Name="ssleay32.dll" />
+ <File DiskId="1" KeyPath="yes" Name="$(var.OpenSslSslName)" />
</Component>
<Component Id="dll.zlib">
<File DiskId="1" KeyPath="yes" Name="zlib.dll" />