cmake_host_system_information.rst 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. 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 megabytes
  18. ``AVAILABLE_VIRTUAL_MEMORY`` Available virtual memory in megabytes
  19. ``TOTAL_PHYSICAL_MEMORY`` Total physical memory in megabytes
  20. ``AVAILABLE_PHYSICAL_MEMORY`` Available physical memory in megabytes
  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 porcessor supports Ext. MMX instructions
  25. ``HAS_SSE`` One if porcessor supports SSE instructions
  26. ``HAS_SSE2`` One if porcessor supports SSE2 instructions
  27. ``HAS_SSE_FP`` One if porcessor supports SSE FP instructions
  28. ``HAS_SSE_MMX`` One if porcessor supports SSE MMX instructions
  29. ``HAS_AMD_3DNOW`` One if porcessor supports 3DNow instructions
  30. ``HAS_AMD_3DNOW_PLUS`` One if porcessor 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. ============================= ================================================