1
0

find_path.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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:: PATH and INCLUDE
  14. .. |CMAKE_SYSTEM_PREFIX_PATH_XXX| replace::
  15. <prefix>/include/<arch> if CMAKE_LIBRARY_ARCHITECTURE is set, and
  16. |CMAKE_SYSTEM_PREFIX_PATH_XXX_SUBDIR|
  17. .. |CMAKE_SYSTEM_XXX_PATH| replace:: CMAKE_SYSTEM_INCLUDE_PATH
  18. .. |CMAKE_SYSTEM_XXX_MAC_PATH| replace:: CMAKE_SYSTEM_FRAMEWORK_PATH
  19. .. |CMAKE_FIND_ROOT_PATH_MODE_XXX| replace::
  20. CMAKE_FIND_ROOT_PATH_MODE_INCLUDE
  21. .. include:: FIND_XXX.txt
  22. When searching for frameworks, if the file is specified as A/b.h, then
  23. the framework search will look for A.framework/Headers/b.h. If that
  24. is found the path will be set to the path to the framework. CMake
  25. will convert this to the correct -F option to include the file.