external: Fix openssl link with update to 3.3.1. (#3308)

This commit is contained in:
Zangetsu
2024-06-13 21:22:17 +02:00
committed by GitHub
parent d5733e358d
commit 190d925147
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -273,7 +273,7 @@ if(NOT OPENSSL_FOUND)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/external/openssl.zip")
message(STATUS "Downloading openssl...")
file(DOWNLOAD https://firedaemon.com/download-firedaemon-openssl-3.1-zip
file(DOWNLOAD https://firedaemon.com/download-firedaemon-openssl-3-3-zip
"${CMAKE_BINARY_DIR}/external/openssl.zip" SHOW_PROGRESS)
endif()
@@ -283,7 +283,7 @@ if(NOT OPENSSL_FOUND)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/external/openssl")
endif()
set(OPENSSL_ROOT_DIR "${CMAKE_BINARY_DIR}/external/openssl/openssl-3.1/x64")
set(OPENSSL_ROOT_DIR "${CMAKE_BINARY_DIR}/external/openssl/openssl-3/x64")
endif()
find_package(OpenSSL REQUIRED)
+2 -2
View File
@@ -279,8 +279,8 @@ elseif(WIN32)
add_custom_command(
TARGET vita3k
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_BINARY_DIR}/external/openssl/openssl-3.1/x64/bin/libssl-3-x64.dll" "$<TARGET_FILE_DIR:vita3k>"
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_BINARY_DIR}/external/openssl/openssl-3.1/x64/bin/libcrypto-3-x64.dll" "$<TARGET_FILE_DIR:vita3k>")
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_BINARY_DIR}/external/openssl/openssl-3/x64/bin/libssl-3-x64.dll" "$<TARGET_FILE_DIR:vita3k>"
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_BINARY_DIR}/external/openssl/openssl-3/x64/bin/libcrypto-3-x64.dll" "$<TARGET_FILE_DIR:vita3k>")
endif()
endif()