[CMake] Use correct visibility for linked libraries in CMake
authorPetr Hosek <phosek@chromium.org>
Wed, 30 Jan 2019 19:27:26 +0000 (19:27 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 30 Jan 2019 19:27:26 +0000 (19:27 +0000)
commitb9128d8def879775838876af43592da01ecbc18d
treef65056a87200ab2429ea6c09b429015d53363f6a
parentc71e996aed8143ea6d27ee49b5caee07db48a031
[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: 352654
libcxx/lib/CMakeLists.txt
libcxxabi/src/CMakeLists.txt
libunwind/src/CMakeLists.txt