[libcxxabi] Rework CMakeLists.txt into modules
authorMartell Malone <martellmalone@gmail.com>
Thu, 1 Jun 2017 00:09:20 +0000 (00:09 +0000)
committerMartell Malone <martellmalone@gmail.com>
Thu, 1 Jun 2017 00:09:20 +0000 (00:09 +0000)
commit062f8f00ae72544654a849c21bd01d7fcee72719
tree414be3e47c4f827bd2c6682aa3bffa75e149d5ed
parent84ee7ff741c758f8e4b1c3da48d1259e9895f385
[libcxxabi] Rework CMakeLists.txt into modules

Refactor cmake to remove dependence on LLVM's cmake modules.
This improves handling of cmake checks when cross compiling and brings
libcxxabi in line with libcxx and other project modules.

Differential revision: https://reviews.llvm.org/D33635

llvm-svn: 304374
libcxxabi/CMakeLists.txt
libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake [new file with mode: 0644]
libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake [new file with mode: 0644]
libcxxabi/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake [new file with mode: 0644]
libcxxabi/src/CMakeLists.txt