File: FIND_XXX_REGISTRY_VIEW.rst

package info (click to toggle)
cmake 4.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 152,344 kB
  • sloc: ansic: 403,894; cpp: 303,807; sh: 4,097; python: 3,582; yacc: 3,106; lex: 1,279; f90: 538; asm: 471; lisp: 375; cs: 270; java: 266; fortran: 239; objc: 215; perl: 213; xml: 198; makefile: 108; javascript: 83; pascal: 63; tcl: 55; php: 25; ruby: 22
file content (41 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Specify which registry views must be queried. This option is only meaningful
on ``Windows`` platforms and will be ignored on other ones. When not
specified, the |FIND_XXX_REGISTRY_VIEW_DEFAULT| view is used when the
:policy:`CMP0134` policy is ``NEW``. Refer to :policy:`CMP0134` for the
default view when the policy is ``OLD``.

``64``
  Query the 64-bit registry. On 32-bit Windows, it always returns the string
  ``/REGISTRY-NOTFOUND``.

``32``
  Query the 32-bit registry.

``64_32``
  Query both views (``64`` and ``32``) and generate a path for each.

``32_64``
  Query both views (``32`` and ``64``) and generate a path for each.

``HOST``
  Query the registry matching the architecture of the host: ``64`` on 64-bit
  Windows and ``32`` on 32-bit Windows.

``TARGET``
  Query the registry matching the architecture specified by the
  :variable:`CMAKE_SIZEOF_VOID_P` variable. If not defined, fall back to
  ``HOST`` view.

``BOTH``
  Query both views (``32`` and ``64``). The order depends on the following
  rules: If the :variable:`CMAKE_SIZEOF_VOID_P` variable is defined, use the
  following view depending on the content of this variable:

  * ``8``: ``64_32``
  * ``4``: ``32_64``

  If the :variable:`CMAKE_SIZEOF_VOID_P` variable is not defined, rely on the
  architecture of the host:

  * 64-bit: ``64_32``
  * 32-bit: ``32``