diff options
author | Brad King <brad.king@kitware.com> | 2015-09-01 20:25:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-02 14:17:22 (GMT) |
commit | 8ea7611bc3650c75c86d22a3127cb117dbcaa9be (patch) | |
tree | e04eb16f45d1b9fc463ae82c4b0184ea04fabca1 /Help/command | |
parent | fc1990c93384d1d2122cd4e11398a8197b006504 (diff) | |
download | CMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.zip CMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.tar.gz CMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.tar.bz2 |
find_program: Optionally consider all names in each directory
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. Add a NAMES_PER_DIR option to tell this command to consider one
directory at a time and search for all names in it.
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/find_program.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Help/command/find_program.rst b/Help/command/find_program.rst index 2a5ce9a..d3430c0 100644 --- a/Help/command/find_program.rst +++ b/Help/command/find_program.rst @@ -2,7 +2,7 @@ find_program ------------ .. |FIND_XXX| replace:: find_program -.. |NAMES| replace:: NAMES name1 [name2 ...] +.. |NAMES| replace:: NAMES name1 [name2 ...] [NAMES_PER_DIR] .. |SEARCH_XXX| replace:: program .. |SEARCH_XXX_DESC| replace:: program .. |prefix_XXX_SUBDIR| replace:: ``<prefix>/[s]bin`` @@ -26,3 +26,8 @@ find_program :variable:`CMAKE_FIND_ROOT_PATH_MODE_PROGRAM` .. include:: FIND_XXX.txt + +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. |