Jean-Michaël Celerier | 03b6f3a | 2020-04-14 04:50:26 -0400 | [diff] [blame] | 1 | CMAKE_PREFIX_PATH |
| 2 | ----------------- |
| 3 | |
Jean-Michaël Celerier | 03b6f3a | 2020-04-14 04:50:26 -0400 | [diff] [blame] | 4 | .. include:: ENV_VAR.txt |
| 5 | |
| 6 | The ``CMAKE_PREFIX_PATH`` environment variable may be set to a list of |
| 7 | directories specifying installation *prefixes* to be searched by the |
| 8 | :command:`find_package`, :command:`find_program`, :command:`find_library`, |
| 9 | :command:`find_file`, and :command:`find_path` commands. Each command will |
| 10 | add appropriate subdirectories (like ``bin``, ``lib``, or ``include``) |
| 11 | as specified in its own documentation. |
| 12 | |
| 13 | This variable may hold a single prefix or a list of prefixes separated |
| 14 | by ``:`` on UNIX or ``;`` on Windows (the same as the ``PATH`` environment |
| 15 | variable convention on those platforms). |
| 16 | |
| 17 | See also the :variable:`CMAKE_PREFIX_PATH` CMake variable. |