CMAKE_SYSTEM_PREFIX_PATH.rst 988 B

123456789101112131415161718192021
  1. CMAKE_SYSTEM_PREFIX_PATH
  2. ------------------------
  3. :ref:`;-list <CMake Language Lists>` of directories specifying installation
  4. *prefixes* to be searched by the :command:`find_package`,
  5. :command:`find_program`, :command:`find_library`, :command:`find_file`, and
  6. :command:`find_path` commands. Each command will add appropriate
  7. subdirectories (like ``bin``, ``lib``, or ``include``) as specified in its own
  8. documentation.
  9. By default this contains the standard directories for the current system, the
  10. :variable:`CMAKE_INSTALL_PREFIX`, and the :variable:`CMAKE_STAGING_PREFIX`.
  11. The installation and staging prefixes may be excluded by setting
  12. the :variable:`CMAKE_FIND_NO_INSTALL_PREFIX` variable.
  13. ``CMAKE_SYSTEM_PREFIX_PATH`` is *not* intended to be modified by the project;
  14. use :variable:`CMAKE_PREFIX_PATH` for this.
  15. See also :variable:`CMAKE_SYSTEM_INCLUDE_PATH`,
  16. :variable:`CMAKE_SYSTEM_LIBRARY_PATH`, :variable:`CMAKE_SYSTEM_PROGRAM_PATH`,
  17. and :variable:`CMAKE_SYSTEM_IGNORE_PATH`.