FIND_XXX_REGISTRY_VIEW.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Specify which registry views must be queried. This option is only meaningful
  2. on ``Windows`` platforms and will be ignored on other ones. When not
  3. specified, the |FIND_XXX_REGISTRY_VIEW_DEFAULT| view is used when the
  4. :policy:`CMP0134` policy is ``NEW``. Refer to :policy:`CMP0134` for the
  5. default view when the policy is ``OLD``.
  6. ``64``
  7. Query the 64-bit registry. On 32-bit Windows, it always returns the string
  8. ``/REGISTRY-NOTFOUND``.
  9. ``32``
  10. Query the 32-bit registry.
  11. ``64_32``
  12. Query both views (``64`` and ``32``) and generate a path for each.
  13. ``32_64``
  14. Query both views (``32`` and ``64``) and generate a path for each.
  15. ``HOST``
  16. Query the registry matching the architecture of the host: ``64`` on 64-bit
  17. Windows and ``32`` on 32-bit Windows.
  18. ``TARGET``
  19. Query the registry matching the architecture specified by the
  20. :variable:`CMAKE_SIZEOF_VOID_P` variable. If not defined, fall back to
  21. ``HOST`` view.
  22. ``BOTH``
  23. Query both views (``32`` and ``64``). The order depends on the following
  24. rules: If the :variable:`CMAKE_SIZEOF_VOID_P` variable is defined, use the
  25. following view depending on the content of this variable:
  26. * ``8``: ``64_32``
  27. * ``4``: ``32_64``
  28. If the :variable:`CMAKE_SIZEOF_VOID_P` variable is not defined, rely on the
  29. architecture of the host:
  30. * 64-bit: ``64_32``
  31. * 32-bit: ``32``