mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-30 19:57:41 +00:00
@@ -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
|
||||
|
||||
|
||||
@@ -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 {};
|
||||
}
|
||||
|
||||
|
||||
@@ -34,3 +34,4 @@
|
||||
-- PROCESSOR_CACHE_SIZE=`.*`
|
||||
-- PROCESSOR_CLOCK_FREQUENCY=`[0-9]+[\\.[0-9]+]?`
|
||||
-- VENDOR_ID=`.*`
|
||||
-- VENDOR_STRING=`.*`
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user