From: Chris Bieneman Date: Tue, 21 May 2019 17:30:59 +0000 (+0000) Subject: [CMake] One more stab at fixing BUILD_SHARED_LIBS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba43004e612b2de9d60fd5b07164e63fa8fe4875;p=clang [CMake] One more stab at fixing BUILD_SHARED_LIBS If clang's libraries are build SHARED, we need to grab their `PRIVATE_LINK_LIBRARIES` properties and add those to clang_shared's interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361275 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-shlib/CMakeLists.txt b/tools/clang-shlib/CMakeLists.txt index 018aee3755..4d11dc2c49 100644 --- a/tools/clang-shlib/CMakeLists.txt +++ b/tools/clang-shlib/CMakeLists.txt @@ -8,6 +8,7 @@ get_property(clang_libs GLOBAL PROPERTY CLANG_STATIC_LIBS) foreach (lib ${clang_libs}) list(APPEND _OBJECTS $) list(APPEND _DEPS $) + list(APPEND _DEPS $) endforeach () add_clang_library(clang_shared