From 253ce62ed2c04ce454247ddbf1767e672d45722f Mon Sep 17 00:00:00 2001 From: RenzoWit35 <168984533+RenzoWit35@users.noreply.github.com> Date: Tue, 24 Nov 2026 09:48:05 +0100 Subject: [PATCH] build: define INTAKE_PYTHON before its first use The xmem_page_stats and startup_heartbeat_commit tests are registered under if(EXISTS "${INTAKE_PYTHON}") at line 138, but the cache variable was only set at line 1061. A fresh configure therefore left both tests out; they appeared only after a second configure. Set the variable right after enable_testing() so the first configure registers them. Refs #1199 --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f08382822..71aa1daf86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ project(Xbox2Windows LANGUAGES CXX) enable_testing() +# Defined before the first Python-driven test so a fresh configure registers all of them. +set(INTAKE_PYTHON "${CMAKE_SOURCE_DIR}/out/pe-env/Scripts/python.exe" CACHE FILEPATH + "Native x64 Python with pefile for static intake tests") + set(DSTORAGE_SDK_ROOT "" CACHE PATH "Extracted Microsoft.Direct3D.DirectStorage NuGet package") if(DSTORAGE_SDK_ROOT) find_package(ZLIB 1.2.9 REQUIRED) @@ -1152,8 +1156,6 @@ if(EXISTS "${SIMPLE_TRIANGLE_DIR}/VertexShader.hlsl") endforeach() endif() -set(INTAKE_PYTHON "${CMAKE_SOURCE_DIR}/out/pe-env/Scripts/python.exe" CACHE FILEPATH - "Native x64 Python with pefile for static intake tests") target_sources(offscreen_check PRIVATE tests/ffx_device_init.cpp tests/ffx_backend_slots.cpp tests/ffx_recurrent.cpp tests/ffx_provider_loop.cpp) set(FFX_UPSCALER_IMAGE "" CACHE FILEPATH "Local Xbox upscaler DLL for offline backend translation") set(FFX_DISPATCH_SHADER_DIR "" CACHE PATH "Directory containing locally translated FSR4 shaders and scratch_reference.h")