SuccessChanges

Summary

  1. [CMake] Use find_library for ncurses (details)
Commit 3c7bfbd6831b2144229734892182d403e46d7baf by phosek
[CMake] Use find_library for ncurses

Currently it is hard to avoid having LLVM link to the system install of
ncurses, since it uses check_library_exists to find e.g. libtinfo and
not find_library or find_package.

With this change the ncurses lib is found with find_library, which also
considers CMAKE_PREFIX_PATH. This solves an issue for the spack package
manager, where we want to use the zlib installed by spack, and spack
provides the CMAKE_PREFIX_PATH for it.

This is a similar change as https://reviews.llvm.org/D79219, which just
landed in master.

Patch By: haampie

Differential Revision: https://reviews.llvm.org/D85820
The file was modifiedcompiler-rt/cmake/config-ix.cmake (diff)
The file was modifiedllvm/CMakeLists.txt (diff)
The file was modifiedllvm/include/llvm/Config/config.h.cmake (diff)
The file was modifiedcompiler-rt/lib/xray/tests/CMakeLists.txt (diff)
The file was modifiedlldb/source/Core/CMakeLists.txt (diff)
The file was modifiedllvm/lib/Support/CMakeLists.txt (diff)
The file was modifiedllvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn (diff)
The file was modifiedllvm/lib/Support/Unix/Process.inc (diff)
The file was modifiedllvm/cmake/config-ix.cmake (diff)