mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
external: Fix openssl link with update to 3.3.1. (#3308)
This commit is contained in:
Vendored
+2
-2
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user