find_path.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. find_path
  2. ---------
  3. .. |FIND_XXX| replace:: find_path
  4. .. |NAMES| replace:: NAMES name1 [name2 ...]
  5. .. |SEARCH_XXX| replace:: file in a directory
  6. .. |SEARCH_XXX_DESC| replace:: directory containing the named file
  7. .. |XXX_SUBDIR| replace:: include
  8. .. |CMAKE_PREFIX_PATH_XXX| replace::
  9. <prefix>/include/<arch> if CMAKE_LIBRARY_ARCHITECTURE is set, and
  10. |CMAKE_PREFIX_PATH_XXX_SUBDIR|
  11. .. |CMAKE_XXX_PATH| replace:: CMAKE_INCLUDE_PATH
  12. .. |CMAKE_XXX_MAC_PATH| replace:: CMAKE_FRAMEWORK_PATH
  13. .. |SYSTEM_ENVIRONMENT_PATH_XXX| replace:: Directories in INCLUDE,
  14. <prefix>/include/<arch> if CMAKE_LIBRARY_ARCHITECTURE is set, and
  15. |SYSTEM_ENVIRONMENT_PREFIX_PATH_XXX_SUBDIR|,
  16. and the directories in PATH itself.
  17. .. |CMAKE_SYSTEM_PREFIX_PATH_XXX| replace::
  18. <prefix>/include/<arch> if CMAKE_LIBRARY_ARCHITECTURE is set, and
  19. |CMAKE_SYSTEM_PREFIX_PATH_XXX_SUBDIR|
  20. .. |CMAKE_SYSTEM_XXX_PATH| replace:: CMAKE_SYSTEM_INCLUDE_PATH
  21. .. |CMAKE_SYSTEM_XXX_MAC_PATH| replace:: CMAKE_SYSTEM_FRAMEWORK_PATH
  22. .. |CMAKE_FIND_ROOT_PATH_MODE_XXX| replace::
  23. :variable:`CMAKE_FIND_ROOT_PATH_MODE_INCLUDE`
  24. .. include:: FIND_XXX.txt
  25. When searching for frameworks, if the file is specified as A/b.h, then
  26. the framework search will look for A.framework/Headers/b.h. If that
  27. is found the path will be set to the path to the framework. CMake
  28. will convert this to the correct -F option to include the file.