cmake_host_system_information: Add VENDOR_STRING

Issue: #27529
This commit is contained in:
Tyler Yankee
2026-01-23 17:39:56 -05:00
parent a6c31e0c54
commit 3ec3bc1c7d
4 changed files with 10 additions and 0 deletions

View File

@@ -207,6 +207,11 @@ queried. The list of queried values is stored in ``<variable>``.
The processor vendor ID
``VENDOR_STRING``
.. versionadded:: 4.3
The processor vendor string
``DISTRIB_INFO``
.. versionadded:: 3.22

View File

@@ -191,6 +191,9 @@ cm::optional<std::string> GetValue(cmsys::SystemInformation& info,
if (key == "VENDOR_ID"_s) {
return ValueToString(info.GetVendorID());
}
if (key == "VENDOR_STRING"_s) {
return ValueToString(info.GetVendorString());
}
return {};
}

View File

@@ -34,3 +34,4 @@
-- PROCESSOR_CACHE_SIZE=`.*`
-- PROCESSOR_CLOCK_FREQUENCY=`[0-9]+[\\.[0-9]+]?`
-- VENDOR_ID=`.*`
-- VENDOR_STRING=`.*`

View File

@@ -39,3 +39,4 @@ try_and_print(PROCESSOR_APIC_ID)
try_and_print(PROCESSOR_CACHE_SIZE)
try_and_print(PROCESSOR_CLOCK_FREQUENCY)
try_and_print(VENDOR_ID)
try_and_print(VENDOR_STRING)