cmake_host_system_information.rst 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ``IS_64BIT`` One if processor is 64Bit
  22. ``HAS_FPU`` One if processor has floating point unit
  23. ``HAS_MMX`` One if processor supports MMX instructions
  24. ``HAS_MMX_PLUS`` One if processor supports Ext. MMX instructions
  25. ``HAS_SSE`` One if processor supports SSE instructions
  26. ``HAS_SSE2`` One if processor supports SSE2 instructions
  27. ``HAS_SSE_FP`` One if processor supports SSE FP instructions
  28. ``HAS_SSE_MMX`` One if processor supports SSE MMX instructions
  29. ``HAS_AMD_3DNOW`` One if processor supports 3DNow instructions
  30. ``HAS_AMD_3DNOW_PLUS`` One if processor supports 3DNow+ instructions
  31. ``HAS_IA64`` One if IA64 processor emulating x86
  32. ``HAS_SERIAL_NUMBER`` One if processor has serial number
  33. ``PROCESSOR_SERIAL_NUMBER`` Processor serial number
  34. ``PROCESSOR_NAME`` Human readable processor name
  35. ``PROCESSOR_DESCRIPTION`` Human readable full processor description
  36. ``OS_NAME`` See :variable:`CMAKE_HOST_SYSTEM_NAME`
  37. ``OS_RELEASE`` The OS sub-type e.g. on Windows ``Professional``
  38. ``OS_VERSION`` The OS build ID
  39. ``OS_PLATFORM`` See :variable:`CMAKE_HOST_SYSTEM_PROCESSOR`
  40. ============================= ================================================
  41. .. rubric:: Footnotes
  42. .. [#mebibytes] One MiB (mebibyte) is equal to 1024x1024 bytes.