Changes CMake configuration files are backported from master to 10.0 branch.
The 10.0.1 release is a bit broken and affects homebrew https://discourse.brew.sh/t/llvm-config-10-0-1-advertise-libxml2-tbd-as-system-libs/8593
To backport https://reviews.llvm.org/D79219 I needed to go through many commits of changes and revert changes regarding "Simplify CMake handling for zlib".
The other changes included are:
- https://reviews.llvm.org/D85820 "Use find_library for ncurses" and,
- https://reviews.llvm.org/D86134 "Fix OCaml build failure because of absolute path in system libs".
I'm not sure if there are plans for another 10.x release, but since I went through the history to make the patch for homebrew I figure I would send it here also just in case.