From e4b85c062d1086e9b5e55ce6eaf23031e3f2aad4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 12 Jul 2019 15:11:28 +0000 Subject: [PATCH] cmake: Fix install of libclang-cpp.so when LLVM_INSTALL_TOOLCHAIN_ONLY=ON 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 --- tools/clang-shlib/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/clang-shlib/CMakeLists.txt b/tools/clang-shlib/CMakeLists.txt index 6f2e4f052e..1ba6ec74a9 100644 --- a/tools/clang-shlib/CMakeLists.txt +++ b/tools/clang-shlib/CMakeLists.txt @@ -38,8 +38,13 @@ foreach (lib ${clang_libs}) 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 -- 2.40.0