cmake_host_system_information.rst 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. cmake_host_system_information
  2. -----------------------------
  3. Query host system specific information.
  4. .. code-block:: cmake
  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. Key Description
  12. ============================= ================================================
  13. ``NUMBER_OF_LOGICAL_CORES`` Number of logical cores
  14. ``NUMBER_OF_PHYSICAL_CORES`` Number of physical cores
  15. ``HOSTNAME`` Hostname
  16. ``FQDN`` Fully qualified domain name
  17. ``TOTAL_VIRTUAL_MEMORY`` Total virtual memory in MiB [#mebibytes]_
  18. ``AVAILABLE_VIRTUAL_MEMORY`` Available virtual memory in MiB [#mebibytes]_
  19. ``TOTAL_PHYSICAL_MEMORY`` Total physical memory in MiB [#mebibytes]_
  20. ``AVAILABLE_PHYSICAL_MEMORY`` Available physical memory in MiB [#mebibytes]_
  21. ============================= ================================================
  22. .. versionadded:: 3.10
  23. Additional ``<key>`` values are available:
  24. ============================= ================================================
  25. Key Description
  26. ============================= ================================================
  27. ``IS_64BIT`` One if processor is 64Bit
  28. ``HAS_FPU`` One if processor has floating point unit
  29. ``HAS_MMX`` One if processor supports MMX instructions
  30. ``HAS_MMX_PLUS`` One if processor supports Ext. MMX instructions
  31. ``HAS_SSE`` One if processor supports SSE instructions
  32. ``HAS_SSE2`` One if processor supports SSE2 instructions
  33. ``HAS_SSE_FP`` One if processor supports SSE FP instructions
  34. ``HAS_SSE_MMX`` One if processor supports SSE MMX instructions
  35. ``HAS_AMD_3DNOW`` One if processor supports 3DNow instructions
  36. ``HAS_AMD_3DNOW_PLUS`` One if processor supports 3DNow+ instructions
  37. ``HAS_IA64`` One if IA64 processor emulating x86
  38. ``HAS_SERIAL_NUMBER`` One if processor has serial number
  39. ``PROCESSOR_SERIAL_NUMBER`` Processor serial number
  40. ``PROCESSOR_NAME`` Human readable processor name
  41. ``PROCESSOR_DESCRIPTION`` Human readable full processor description
  42. ``OS_NAME`` See :variable:`CMAKE_HOST_SYSTEM_NAME`
  43. ``OS_RELEASE`` The OS sub-type e.g. on Windows ``Professional``
  44. ``OS_VERSION`` The OS build ID
  45. ``OS_PLATFORM`` See :variable:`CMAKE_HOST_SYSTEM_PROCESSOR`
  46. ============================= ================================================
  47. .. rubric:: Footnotes
  48. .. [#mebibytes] One MiB (mebibyte) is equal to 1024x1024 bytes.