[llvm][cmake] Follow up to D117973
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Thu, 25 Mar 2021 00:03:33 +0000 (00:03 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 26 Jul 2022 14:51:12 +0000 (14:51 +0000)
commita5640968f2f7485b2aa4919f5fa68fd8f23e2d1f
tree617d4cdfad7f344b03a019797a47945b44753b55
parent28e665fa054d62d4e2c777774cc83dea533dfe6e
[llvm][cmake] Follow up to D117973

1. Slightly document the "mark advanced" variable used to control the
   installed CMake package dir.

   I would document it more, but I am considering in the future adding
   pkg-config support in this manner, after which `_PACKGE_DIR` is
   probably better called `_CMAKE_PACKGE_DIR` or similar.

2. Convey the custom path to the legacy `llvm-config` binary.

Reviewed By: sebastian-ne

Differential Revision: https://reviews.llvm.org/D130539
llvm/docs/CMake.rst
llvm/tools/llvm-config/BuildVariables.inc.in
llvm/tools/llvm-config/llvm-config.cpp