2013-10-15 15:17:36 +00:00
|
|
|
find_path
|
|
|
|
---------
|
|
|
|
|
2013-10-01 16:37:02 +00:00
|
|
|
.. |FIND_XXX| replace:: find_path
|
|
|
|
.. |NAMES| replace:: NAMES name1 [name2 ...]
|
|
|
|
.. |SEARCH_XXX| replace:: file in a directory
|
|
|
|
.. |SEARCH_XXX_DESC| replace:: directory containing the named file
|
2015-06-08 19:52:21 +00:00
|
|
|
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/include``
|
|
|
|
.. |entry_XXX_SUBDIR| replace:: ``<entry>/include``
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2018-03-15 17:22:07 +00:00
|
|
|
.. |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX| replace::
|
|
|
|
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
|
|
|
is set, and |FIND_PACKAGE_ROOT_PREFIX_PATH_XXX_SUBDIR|
|
2013-10-01 16:37:02 +00:00
|
|
|
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
2015-06-08 19:52:21 +00:00
|
|
|
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
|
|
|
is set, and |CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
|
|
|
.. |CMAKE_XXX_PATH| replace:: :variable:`CMAKE_INCLUDE_PATH`
|
|
|
|
.. |CMAKE_XXX_MAC_PATH| replace:: :variable:`CMAKE_FRAMEWORK_PATH`
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2019-06-12 20:04:22 +00:00
|
|
|
.. |SYSTEM_ENVIRONMENT_PATH_XXX| replace:: The directories in ``PATH`` and ``INCLUDE``.
|
|
|
|
.. |SYSTEM_ENVIRONMENT_PATH_WINDOWS_XXX| replace:: On Windows hosts:
|
|
|
|
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
|
|
|
is set, and |SYSTEM_ENVIRONMENT_PREFIX_PATH_XXX_SUBDIR|.
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2013-10-01 16:37:02 +00:00
|
|
|
.. |CMAKE_SYSTEM_PREFIX_PATH_XXX| replace::
|
2015-06-08 19:52:21 +00:00
|
|
|
``<prefix>/include/<arch>`` if :variable:`CMAKE_LIBRARY_ARCHITECTURE`
|
|
|
|
is set, and |CMAKE_SYSTEM_PREFIX_PATH_XXX_SUBDIR|
|
|
|
|
.. |CMAKE_SYSTEM_XXX_PATH| replace::
|
|
|
|
:variable:`CMAKE_SYSTEM_INCLUDE_PATH`
|
|
|
|
.. |CMAKE_SYSTEM_XXX_MAC_PATH| replace::
|
|
|
|
:variable:`CMAKE_SYSTEM_FRAMEWORK_PATH`
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2013-10-01 16:37:02 +00:00
|
|
|
.. |CMAKE_FIND_ROOT_PATH_MODE_XXX| replace::
|
2013-11-26 18:58:07 +00:00
|
|
|
:variable:`CMAKE_FIND_ROOT_PATH_MODE_INCLUDE`
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2013-10-01 16:37:02 +00:00
|
|
|
.. include:: FIND_XXX.txt
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2015-06-08 19:52:21 +00:00
|
|
|
When searching for frameworks, if the file is specified as ``A/b.h``, then
|
|
|
|
the framework search will look for ``A.framework/Headers/b.h``. If that
|
2013-10-15 15:17:36 +00:00
|
|
|
is found the path will be set to the path to the framework. CMake
|
2015-06-08 19:52:21 +00:00
|
|
|
will convert this to the correct ``-F`` option to include the file.
|