CMP0134.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. CMP0134
  2. -------
  3. .. versionadded:: 3.24
  4. The default registry view is ``TARGET`` for the :command:`find_file`,
  5. :command:`find_path`, :command:`find_library`, and :command:`find_package`
  6. commands and ``BOTH`` for the :command:`find_program` command.
  7. The default registry views in CMake 3.23 and below are selected using the
  8. following rules:
  9. * if :variable:`CMAKE_SIZEOF_VOID_P` has value ``8``:
  10. * Use view ``64`` for all ``find_*`` commands except :command:`find_program`
  11. command.
  12. * Use view ``64_32`` for :command:`find_program` command.
  13. * if :variable:`CMAKE_SIZEOF_VOID_P` has value ``4`` or is undefined:
  14. * Use view ``32`` for all ``find_*`` commands except :command:`find_program`
  15. command.
  16. * Use view ``32_64`` for :command:`find_program` command.
  17. The ``OLD`` behavior for this policy is to use registry views ``64`` and
  18. ``64_32`` or ``32_64`` and ``32`` as default, depending of
  19. :variable:`CMAKE_SIZEOF_VOID_P` variable value.
  20. The ``NEW`` behavior for this policy is to use registry views ``TARGET`` and
  21. ``BOTH`` as default.
  22. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.24
  23. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  24. .. include:: STANDARD_ADVICE.txt
  25. .. include:: DEPRECATED.txt