cmake_host_system_informationΒΆ
Query host system specific information.
cmake_host_system_information(RESULT <variable> QUERY <key> ...)
Queries system information of the host system on which cmake runs.
One or more <key> can be provided to select the information to be
queried.  The list of queried values is stored in <variable>.
<key> can be one of the following values:
| Key | Description | 
|---|---|
| 
 | Number of logical cores | 
| 
 | Number of physical cores | 
| 
 | Hostname | 
| 
 | Fully qualified domain name | 
| 
 | Total virtual memory in MiB 1 | 
| 
 | Available virtual memory in MiB 1 | 
| 
 | Total physical memory in MiB 1 | 
| 
 | Available physical memory in MiB 1 | 
New in version 3.10: Additional <key> values are available:
| Key | Description | 
|---|---|
| 
 | One if processor is 64Bit | 
| 
 | One if processor has floating point unit | 
| 
 | One if processor supports MMX instructions | 
| 
 | One if processor supports Ext. MMX instructions | 
| 
 | One if processor supports SSE instructions | 
| 
 | One if processor supports SSE2 instructions | 
| 
 | One if processor supports SSE FP instructions | 
| 
 | One if processor supports SSE MMX instructions | 
| 
 | One if processor supports 3DNow instructions | 
| 
 | One if processor supports 3DNow+ instructions | 
| 
 | One if IA64 processor emulating x86 | 
| 
 | One if processor has serial number | 
| 
 | Processor serial number | 
| 
 | Human readable processor name | 
| 
 | Human readable full processor description | 
| 
 | |
| 
 | The OS sub-type e.g. on Windows  | 
| 
 | The OS build ID | 
| 
 | 
Footnotes
