[include-cleaner] Fix link errors when -DBUILD_SHARED_LIBS=ON
authorKai Luo <lkail@cn.ibm.com>
Wed, 19 Oct 2022 07:25:44 +0000 (07:25 +0000)
committerKai Luo <lkail@cn.ibm.com>
Wed, 19 Oct 2022 07:26:08 +0000 (07:26 +0000)
commit2e73129483c4be78d32f4bbe3f9a3130d9fc83b7
treee381fce4aa54323694c3dd8807ce8e42b5c50a79
parent875fd9df76ded4a88a3a44b690f290ea98f91705
[include-cleaner] Fix link errors when -DBUILD_SHARED_LIBS=ON

Fixed ppc buildbot https://lab.llvm.org/buildbot/#/builders/121/builds/24273 which is using `-DBUILD_SHARED_LIBS=ON`.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D136229
clang-tools-extra/include-cleaner/lib/CMakeLists.txt
clang-tools-extra/include-cleaner/tool/CMakeLists.txt