]> granicus.if.org Git - clang/commit
[clang-shlib] Fix clang-shlib for PRIVATE dependencies
authorShoaib Meenai <smeenai@fb.com>
Thu, 11 Jul 2019 21:20:38 +0000 (21:20 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 11 Jul 2019 21:20:38 +0000 (21:20 +0000)
commitf90a391b76e51e3bbcc071d2d0f1f2bac45a08d3
treec3644d89ce1c5121eb98b3a4da39a1816f2940d9
parentb0978dd75c68e5f940737cff71fdd363273ac498
[clang-shlib] Fix clang-shlib for PRIVATE dependencies

Any static library with a PRIVATE dependency ends up with a
$<LINK_ONLY:...> generator expression in its INTERFACE_LINK_LIBRARIES,
which won't be evaluated by the $<TARGET_PROPERTY:...>, so we end up
with an unevaluated generator expression in the generated build file and
Ninja chokes on the dollar sign. Just use the static library directly
for its dependencies instead of trying to propagate dependencies
manually.

Differential Revision: https://reviews.llvm.org/D64579

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365825 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-shlib/CMakeLists.txt