cmake_host_system_information.rst 897 B

12345678910111213141516171819202122232425
  1. cmake_host_system_information
  2. -----------------------------
  3. Query host system specific information.
  4. ::
  5. cmake_host_system_information(RESULT <variable> QUERY <key> ...)
  6. Queries system information of the host system on which cmake runs.
  7. One or more <key> can be provided to select the information to be
  8. queried. The list of queried values is stored in <variable>.
  9. <key> can be one of the following values:
  10. ::
  11. NUMBER_OF_LOGICAL_CORES = Number of logical cores.
  12. NUMBER_OF_PHYSICAL_CORES = Number of physical cores.
  13. HOSTNAME = Hostname.
  14. FQDN = Fully qualified domain name.
  15. TOTAL_VIRTUAL_MEMORY = Total virtual memory in megabytes.
  16. AVAILABLE_VIRTUAL_MEMORY = Available virtual memory in megabytes.
  17. TOTAL_PHYSICAL_MEMORY = Total physical memory in megabytes.
  18. AVAILABLE_PHYSICAL_MEMORY = Available physical memory in megabytes.