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
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