Summary:
If CLANG_LINK_CLANG_DYLIB is also enabled, then this library needs to be
installed.
Fixes PR42575.
Reviewers: beanz, smeenai
Subscribers: mgorny, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64582
Conflicts:
clang/tools/clang-shlib/CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365905
91177308-0d34-0410-b5e6-
96231b3b80d8
list(APPEND _DEPS ${lib})
endforeach ()
+if (CLANG_LINK_CLANG_DYLIB)
+ set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN)
+endif()
+
add_clang_library(clang-cpp
SHARED
+ ${INSTALL_WITH_TOOLCHAIN}
clang-shlib.cpp
${_OBJECTS}
LINK_LIBS