summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Bieneman <chris.bieneman@me.com>2019-05-21 23:50:15 +0000
committerChris Bieneman <chris.bieneman@me.com>2019-05-21 23:50:15 +0000
commitf71dcea071a1be41e27d816b89425ba5bd6c7c59 (patch)
treec890bba2b4e2f04121a95bbf687d9ab7ce26e7c1 /tools
parentbeec40f7fdb23833c51c2aa79009ce741b03d49a (diff)
downloadclang-f71dcea071a1be41e27d816b89425ba5bd6c7c59.tar.gz
Fix target property to make BUILD_SHARED_LIBS work
Public and Private link libraries get merged in the LINK_LIBRARIES property instead of being kept separate. With any luck this will get `BUILD_SHARED_LIBS` working again on Linux. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/clang-shlib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-shlib/CMakeLists.txt b/tools/clang-shlib/CMakeLists.txt
index 4d11dc2c49..162a935301 100644
--- a/tools/clang-shlib/CMakeLists.txt
+++ b/tools/clang-shlib/CMakeLists.txt
@@ -8,7 +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>)
+ list(APPEND _DEPS $<TARGET_PROPERTY:${lib},LINK_LIBRARIES>)
endforeach ()
add_clang_library(clang_shared