summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Bieneman <chris.bieneman@me.com>2019-05-21 17:30:59 +0000
committerChris Bieneman <chris.bieneman@me.com>2019-05-21 17:30:59 +0000
commitba43004e612b2de9d60fd5b07164e63fa8fe4875 (patch)
treea18b5de8ffa222d9b00d68ab888c5fc4e7430b4f /tools
parent066dde24f062acf75e1e6bb037a6e27ca3b77739 (diff)
downloadclang-ba43004e612b2de9d60fd5b07164e63fa8fe4875.tar.gz
[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
Diffstat (limited to 'tools')
-rw-r--r--tools/clang-shlib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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 $<TARGET_OBJECTS:obj.${lib}>)
list(APPEND _DEPS $<TARGET_PROPERTY:${lib},INTERFACE_LINK_LIBRARIES>)
+ list(APPEND _DEPS $<TARGET_PROPERTY:${lib},PRIVATE_LINK_LIBRARIES>)
endforeach ()
add_clang_library(clang_shared