This is the patch for LLVM proper in my series for adding GNUInstallDirs support in all project.
Additionally:
Create a new `CACHE PATH` variable, `LLVM_EXAMPLES_INSTALL_DIR`, to control where the examples are installed on analogy with the other variables.
Convert the following variables from `CACHE STRING`s to `CACHE PATH`s:
- `LLVM_TOOLS_INSTALL_DIR`
- `LLVM_UTILS_INSTALL_DIR`
- `LLVM_EXAMPLES_INSTALL_DIR`
- `LLVM_Z3_INSTALL_DIR`
- `LLVM_INSTALL_DOXYGEN_HTML_DIR`
- `LLVM_INSTALL_OCAMLDOC_HTML_DIR`
- `LLVM_INSTALL_SPHINX_HTML_DIR` (and similar variables, it is defined reusable module)
Remove stray tabs in `llvm/CMakeLists.txt`
---
This patch supersedes D28234, which tried to do the same thing but hand-rolled without GNUInstallDirs.
This patch nearly reverts commit 3 0fc88bf1dc15a72e2d9809d28019d386b7a7cc0, which was a revert of a prior attempt."
(I had to add a space here or else phabricator detects a reference cycle and won't let me do the form submit.)