From 7867a36fdc98533714978759d7d6080af0063ec8 Mon Sep 17 00:00:00 2001 From: Tyler Yankee Date: Sat, 24 Jan 2026 20:17:01 -0500 Subject: [PATCH] instrumentation: Run system checks for static system info This JSON object contains processor- and memory-related data, so we must always ensure those checks are run first. Fixes: #27537 --- Source/cmInstrumentation.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmInstrumentation.cxx b/Source/cmInstrumentation.cxx index 5511274599..69f83a41fa 100644 --- a/Source/cmInstrumentation.cxx +++ b/Source/cmInstrumentation.cxx @@ -465,6 +465,11 @@ void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root) info.RunOSCheck(); this->ranOSCheck = true; } + if (!this->ranSystemChecks) { + info.RunCPUCheck(); + info.RunMemoryCheck(); + this->ranSystemChecks = true; + } Json::Value infoRoot; infoRoot["familyId"] = info.GetFamilyID(); infoRoot["hostname"] = info.GetHostname();