FIND_XXX_ROOT.txt 874 B

1234567891011121314
  1. The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more
  2. directories to be prepended to all other search directories. This
  3. effectively "re-roots" the entire search under given locations. By
  4. default it is empty. It is especially useful when cross-compiling to
  5. point to the root directory of the target environment and CMake will
  6. search there too. By default at first the directories listed in
  7. CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be
  8. searched. The default behavior can be adjusted by setting
  9. |CMAKE_FIND_ROOT_PATH_MODE_XXX|. This behavior can be manually
  10. overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH
  11. the search order will be as described above. If
  12. NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be
  13. used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted
  14. directories will be searched.