[CMake] Use correct visibility for linked libraries in CMake
authorPetr Hosek <phosek@chromium.org>
Wed, 30 Jan 2019 23:18:05 +0000 (23:18 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 30 Jan 2019 23:18:05 +0000 (23:18 +0000)
commit8e7891544642c1326737c92be68edd1c90e7a660
tree414e3e58d4c6cc4e987d341ce93ecb76906a138f
parent1f7eda5aac1dd9abd754044ba9883d4e81cc08c0
[CMake] Use correct visibility for linked libraries in CMake

When linking library dependencies, we shouldn't need to export linked
libraries to dependents. We should be explicit about this in
target_link_libraries, otherwise other targets that depend on these such
as sanitizers get repeated (and possibly even conflicting) dependencies.

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

llvm-svn: 352688
libcxx/benchmarks/CMakeLists.txt
libcxx/lib/CMakeLists.txt
libcxxabi/src/CMakeLists.txt
libunwind/src/CMakeLists.txt