CMAKE_FIND_USE_CMAKE_PATH.rst 830 B

123456789101112131415161718
  1. CMAKE_FIND_USE_CMAKE_PATH
  2. -------------------------
  3. Controls the searching the cmake-specific cache variables by the
  4. :command:`find_program`, :command:`find_library`, :command:`find_file`,
  5. :command:`find_path`, and command:`find_package` commands.
  6. This is useful in cross-compiling environments.
  7. By default this variable is not set, which is equivalent to it having
  8. a value of ``TRUE``. Explicit options given to the :command:`find_program`,
  9. :command:`find_library`, :command:`find_file`, and :command:`find_path`
  10. commands take precedence over this variable.
  11. See also the :variable:`CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH`,
  12. :variable:`CMAKE_FIND_USE_CMAKE_SYSTEM_PATH`,
  13. :variable:`CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH`,
  14. :variable:`CMAKE_FIND_USE_PACKAGE_REGISTRY`,
  15. and :variable:`CMAKE_FIND_USE_PACKAGE_ROOT_PATH` variables.