mirror of https://github.com/Icinga/icinga2.git
Merge pull request #9787 from Icinga/OpenSSL30
Windows: bump OpenSSL v1.1 (soon EOL) -> v3.0
This commit is contained in:
commit
2e4af46d46
|
@ -512,16 +512,16 @@ set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE)
|
|||
include(InstallRequiredSystemLibraries)
|
||||
|
||||
if(WIN32)
|
||||
if (OPENSSL_VERSION_MINOR GREATER_EQUAL 1)
|
||||
if (CMAKE_VS_PLATFORM_NAME STREQUAL "x64")
|
||||
list (APPEND ICINGA2_OPENSSL_DLLS ${OPENSSL_INCLUDE_DIR}/../bin/libcrypto-1_1-x64.dll ${OPENSSL_INCLUDE_DIR}/../bin/libssl-1_1-x64.dll)
|
||||
else()
|
||||
list (APPEND ICINGA2_OPENSSL_DLLS ${OPENSSL_INCLUDE_DIR}/../bin/libcrypto-1_1.dll ${OPENSSL_INCLUDE_DIR}/../bin/libssl-1_1.dll)
|
||||
endif()
|
||||
if (CMAKE_VS_PLATFORM_NAME STREQUAL "x64")
|
||||
set(ICINGA2_OPENSSL_DLL_ARCH "-x64")
|
||||
else()
|
||||
list (APPEND ICINGA2_OPENSSL_DLLS ${OPENSSL_INCLUDE_DIR}/../bin/libeay32.dll ${OPENSSL_INCLUDE_DIR}/../bin/ssleay32.dll)
|
||||
set(ICINGA2_OPENSSL_DLL_ARCH "")
|
||||
endif()
|
||||
|
||||
foreach(ICINGA2_OPENSSL_LIB crypto ssl)
|
||||
list(APPEND ICINGA2_OPENSSL_DLLS ${OPENSSL_INCLUDE_DIR}/../bin/lib${ICINGA2_OPENSSL_LIB}-3${ICINGA2_OPENSSL_DLL_ARCH}.dll)
|
||||
endforeach()
|
||||
|
||||
install(
|
||||
PROGRAMS ${ICINGA2_OPENSSL_DLLS}
|
||||
DESTINATION ${CMAKE_INSTALL_SBINDIR}
|
||||
|
|
|
@ -482,8 +482,8 @@ File Type: EXECUTABLE IMAGE
|
|||
boost_filesystem-vc142-mt-gd-x64-1_82.dll
|
||||
boost_thread-vc142-mt-gd-x64-1_82.dll
|
||||
boost_regex-vc142-mt-gd-x64-1_82.dll
|
||||
libssl-1_1-x64.dll
|
||||
libcrypto-1_1-x64.dll
|
||||
libssl-3_0-x64.dll
|
||||
libcrypto-3_0-x64.dll
|
||||
WS2_32.dll
|
||||
dbghelp.dll
|
||||
SHLWAPI.dll
|
||||
|
|
|
@ -14,7 +14,7 @@ function ThrowOnNativeFailure {
|
|||
$VsVersion = 2019
|
||||
$MsvcVersion = '14.2'
|
||||
$BoostVersion = @(1, 82, 0)
|
||||
$OpensslVersion = '1_1_1t'
|
||||
$OpensslVersion = '3_0_9'
|
||||
|
||||
switch ($Env:BITS) {
|
||||
32 { }
|
||||
|
|
|
@ -30,7 +30,7 @@ if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
|
|||
}
|
||||
}
|
||||
if (-not (Test-Path env:OPENSSL_ROOT_DIR)) {
|
||||
$env:OPENSSL_ROOT_DIR = "c:\local\OpenSSL_1_1_1t-Win${env:BITS}"
|
||||
$env:OPENSSL_ROOT_DIR = "c:\local\OpenSSL_3_0_9-Win${env:BITS}"
|
||||
}
|
||||
if (-not (Test-Path env:BOOST_ROOT)) {
|
||||
$env:BOOST_ROOT = "c:\local\boost_1_82_0-Win${env:BITS}"
|
||||
|
|
Loading…
Reference in New Issue