[CMake] Split linked libraries for shared and static libc++
authorPetr Hosek <phosek@chromium.org>
Wed, 17 Apr 2019 21:41:09 +0000 (21:41 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 17 Apr 2019 21:41:09 +0000 (21:41 +0000)
commit1788b89b4feddce4874a92a7008da956d4813825
treedc0692b6b8a7210ecd278790b0ceb72176cfa514
parentdaf6e66ac5d2f5305f493e90923d11b91a27e7b3
[CMake] Split linked libraries for shared and static libc++

Some linker libraries are only needed for shared libc++, some only
for static libc++, combining these together in LIBCXX_LIBRARIES and
LIBCXX_INTERFACE_LIBRARIES can introduce unnecessary dependencies.

This changes splits those up into LIBCXX_SHARED_LIBRARIES and
LIBCXX_STATIC_LIBRARIES matching what libc++abi already does.

Differential Revision: https://reviews.llvm.org/D57872

llvm-svn: 358614
libcxx/cmake/Modules/HandleLibcxxFlags.cmake
libcxx/lib/CMakeLists.txt