[lldb] Only add lldb-framework-cleanup dependency to existing targets
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 11 Jan 2023 00:22:07 +0000 (16:22 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 11 Jan 2023 00:23:43 +0000 (16:23 -0800)
commit302f4aef7930c125236f071140eb9482532f2877
tree30418654017981cb0d70f61e9f42387fc5cbf4ba
parentcf9ee8791e8b64c46f16dea71345330d70a1deb3
[lldb] Only add lldb-framework-cleanup dependency to existing targets

The Xcode standalone build doesn't have the install-liblldb and
install-liblldb-stripped targets. Fix the resulting CMake error "Cannot
add target-level dependencies to non-existent target" by only adding the
dependency when the targets exist.
lldb/source/API/CMakeLists.txt