[cmake] Fix clang builds with BUILD_SHARED=ON and CLANG_LINK_CLANG_DYLIB=ON
authorTom Stellard <tstellar@redhat.com>
Tue, 4 Feb 2020 21:06:54 +0000 (13:06 -0800)
committerTom Stellard <tstellar@redhat.com>
Tue, 4 Feb 2020 22:15:16 +0000 (14:15 -0800)
commitebcf25ea8100fc9987fd1edd1975194addc2fc05
treeaead783a47ba9a14d1a30751726e1d40cf1de103
parentc21b71c1ba5cbfd8de755a067bedc5ca40a66a20
[cmake] Fix clang builds with BUILD_SHARED=ON and CLANG_LINK_CLANG_DYLIB=ON

Summary:
We were linking all the clang objects and shared libraries into
libclang-cpp.so, which was causing the command line options to be
registered twice.

Reviewers: beanz, mgorny

Reviewed By: beanz, mgorny

Subscribers: merge_guards_bot, mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68520
clang/tools/clang-shlib/CMakeLists.txt