2013-10-15 19:17:36 +04:00
|
|
|
find_program
|
|
|
|
------------
|
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |FIND_XXX| replace:: find_program
|
2015-09-01 23:25:57 +03:00
|
|
|
.. |NAMES| replace:: NAMES name1 [name2 ...] [NAMES_PER_DIR]
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |SEARCH_XXX| replace:: program
|
|
|
|
.. |SEARCH_XXX_DESC| replace:: program
|
2015-06-08 22:52:21 +03:00
|
|
|
.. |prefix_XXX_SUBDIR| replace:: ``<prefix>/[s]bin``
|
|
|
|
.. |entry_XXX_SUBDIR| replace:: ``<entry>/[s]bin``
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |CMAKE_PREFIX_PATH_XXX| replace::
|
|
|
|
|CMAKE_PREFIX_PATH_XXX_SUBDIR|
|
2015-06-08 22:52:21 +03:00
|
|
|
.. |CMAKE_XXX_PATH| replace:: :variable:`CMAKE_PROGRAM_PATH`
|
|
|
|
.. |CMAKE_XXX_MAC_PATH| replace:: :variable:`CMAKE_APPBUNDLE_PATH`
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-06-08 22:52:21 +03:00
|
|
|
.. |SYSTEM_ENVIRONMENT_PATH_XXX| replace:: ``PATH``
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |CMAKE_SYSTEM_PREFIX_PATH_XXX| replace::
|
|
|
|
|CMAKE_SYSTEM_PREFIX_PATH_XXX_SUBDIR|
|
2015-06-08 22:52:21 +03:00
|
|
|
.. |CMAKE_SYSTEM_XXX_PATH| replace::
|
|
|
|
:variable:`CMAKE_SYSTEM_PROGRAM_PATH`
|
|
|
|
.. |CMAKE_SYSTEM_XXX_MAC_PATH| replace::
|
|
|
|
:variable:`CMAKE_SYSTEM_APPBUNDLE_PATH`
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. |CMAKE_FIND_ROOT_PATH_MODE_XXX| replace::
|
2013-11-26 22:58:07 +04:00
|
|
|
:variable:`CMAKE_FIND_ROOT_PATH_MODE_PROGRAM`
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2013-10-01 20:37:02 +04:00
|
|
|
.. include:: FIND_XXX.txt
|
2015-09-01 23:25:57 +03:00
|
|
|
|
|
|
|
When more than one value is given to the ``NAMES`` option this command by
|
|
|
|
default will consider one name at a time and search every directory
|
|
|
|
for it. The ``NAMES_PER_DIR`` option tells this command to consider one
|
|
|
|
directory at a time and search for all names in it.
|