From 2581c82782defd3308b84ef4e8b58af3ae51520b Mon Sep 17 00:00:00 2001 From: Jesse Olmer Date: Wed, 21 Oct 2026 13:46:45 -0700 Subject: [PATCH] fix: Use replacement FetchContent APIs and explicitly configure zip timestamp behavior --- Graphics/GraphicsEngineD3D12/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt index 61e812cbb6..22d182d523 100644 --- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt +++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt @@ -251,15 +251,13 @@ if(${DILIGENT_LOAD_PIX_EVENT_RUNTIME}) WinPixEventRuntime URL "https://www.nuget.org/api/v2/package/WinPixEventRuntime" DOWNLOAD_DIR ${DILIGENT_PIX_EVENT_RUNTIME_PATH} + DOWNLOAD_EXTRACT_TIMESTAMP TRUE LOG_DOWNLOAD 1 SOURCE_DIR ${DILIGENT_PIX_EVENT_RUNTIME_PATH} CONFIGURE_COMMAND ${CMAKE_COMMAND} -E tar -xf "${CMAKE_BINARY_DIR}/WinPixEventRuntime/winpixeventruntime.*.nupkg" LOG_CONFIGURE 1 ) - FetchContent_GetProperties(WinPixEventRuntime) - if(NOT WinPixEventRuntime_POPULATED) - FetchContent_Populate(WinPixEventRuntime) - endif() + FetchContent_MakeAvailable(WinPixEventRuntime) if(EXISTS "${DILIGENT_PIX_EVENT_RUNTIME_PATH}/include/WinPixEventRuntime/pix3.h") if(PLATFORM_WIN32 AND ${CMAKE_SIZEOF_VOID_P} EQUAL 8) set(DILIGENT_PIX_EVENT_RUNTIME_DLL_PATH ${DILIGENT_PIX_EVENT_RUNTIME_PATH}/bin/x64/WinPixEventRuntime.dll)