From cddc4c9f6ed93cab99cdbbfa4fdbcdeadb99314d Mon Sep 17 00:00:00 2001 From: JulesB40 Date: Wed, 28 Oct 2026 22:06:50 +0100 Subject: [PATCH] fix(libSceLibreSsl): pass DOWNLOAD_EXTRACT_TIMESTAMP to the oracle reference only on CMake 3.24 and later CMake 3.22 and 3.23 do not know the option and read it as part of URL_HASH, so configuring with ANYPS5_LIBRESSL_ORACLE=ON failed there. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceLibreSsl/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/libs/prx/libSceLibreSsl/CMakeLists.txt b/core/libs/prx/libSceLibreSsl/CMakeLists.txt index 6ddfff852a..5c5c8b6611 100644 --- a/core/libs/prx/libSceLibreSsl/CMakeLists.txt +++ b/core/libs/prx/libSceLibreSsl/CMakeLists.txt @@ -270,10 +270,14 @@ endif() if(BUILD_TESTING AND ANYPS5_LIBRESSL_ORACLE) include(ExternalProject) set(libressl_reference_build "${CMAKE_BINARY_DIR}/libressl-reference-build") + set(libressl_reference_timestamp) + if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24) + set(libressl_reference_timestamp DOWNLOAD_EXTRACT_TIMESTAMP ON) + endif() ExternalProject_Add(libressl_reference URL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.4.tar.gz URL_HASH SHA256=107a5b522fbb8318d4c3be668075e5e607296f0a9255d71674caa94571336efa - DOWNLOAD_EXTRACT_TIMESTAMP ON + ${libressl_reference_timestamp} PREFIX "${CMAKE_BINARY_DIR}/libressl-reference" BINARY_DIR "${libressl_reference_build}" CMAKE_ARGS