find-command-prefix-from-PATH-windows-only.rst 716 B

123456789101112
  1. find-command-prefix-from-PATH-windows-only
  2. ------------------------------------------
  3. * The :command:`find_library`, :command:`find_path`, and :command:`find_file`
  4. commands no longer search in installation prefixes derived from the ``PATH``
  5. environment variable on non-Windows platforms. This behavior was added in
  6. CMake 3.3 to support Windows hosts but has proven problematic on UNIX hosts.
  7. Users that keep some ``<prefix>/bin`` directories in the ``PATH`` just for
  8. their tools do not necessarily want any supporting ``<prefix>/lib``
  9. directories searched. One may set the ``CMAKE_PREFIX_PATH`` environment
  10. variable with a :ref:`;-list <CMake Language Lists>` of prefixes that are
  11. to be searched.