[cmake] Move HandleOutOfTreeLLVM to common cmake utils
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 18 Jan 2022 22:58:31 +0000 (22:58 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Wed, 19 Jan 2022 22:05:23 +0000 (22:05 +0000)
commit429a717ea5ec141b5c0c93c2c53097dccf67e05a
tree2e9941111446fe98dc6cf05efcb913e68b0ee394
parenta767ae2c5ce7615c188baabd3b6a52bb880de234
[cmake] Move HandleOutOfTreeLLVM to common cmake utils

This is better than libunwind and libcxxabi fishing it out of libcxx's
module directory.

It is done in prepartion for a better version of D117537 which deduplicates
CMake logic instead of just renaming to avoid a name clash.

Reviewed By: phosek, #libunwind, #libc_abi, Ericson2314

Differential Revision: https://reviews.llvm.org/D117617
cmake/Modules/HandleOutOfTreeLLVM.cmake [moved from libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake with 97% similarity]
libcxxabi/CMakeLists.txt
libunwind/CMakeLists.txt