CMAKE_PREFIX_PATH.rst 736 B

12345678910111213141516171819
  1. CMAKE_PREFIX_PATH
  2. -----------------
  3. .. versionadded:: 3.18
  4. .. include:: ENV_VAR.txt
  5. The ``CMAKE_PREFIX_PATH`` environment variable may be set to a list of
  6. directories specifying installation *prefixes* to be searched by the
  7. :command:`find_package`, :command:`find_program`, :command:`find_library`,
  8. :command:`find_file`, and :command:`find_path` commands. Each command will
  9. add appropriate subdirectories (like ``bin``, ``lib``, or ``include``)
  10. as specified in its own documentation.
  11. This variable may hold a single prefix or a list of prefixes separated
  12. by ``:`` on UNIX or ``;`` on Windows (the same as the ``PATH`` environment
  13. variable convention on those platforms).
  14. See also the :variable:`CMAKE_PREFIX_PATH` CMake variable.