blob: 276fdd6b97e04a8409996f2726db5255b4d160a8 [file] [log] [blame]
Jean-Michaël Celerier03b6f3a2020-04-14 04:50:26 -04001CMAKE_PREFIX_PATH
2-----------------
3
Jean-Michaël Celerier03b6f3a2020-04-14 04:50:26 -04004.. include:: ENV_VAR.txt
5
6The ``CMAKE_PREFIX_PATH`` environment variable may be set to a list of
7directories 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
10add appropriate subdirectories (like ``bin``, ``lib``, or ``include``)
11as specified in its own documentation.
12
13This variable may hold a single prefix or a list of prefixes separated
14by ``:`` on UNIX or ``;`` on Windows (the same as the ``PATH`` environment
15variable convention on those platforms).
16
17See also the :variable:`CMAKE_PREFIX_PATH` CMake variable.