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.
if(LLDB_BUILD_FRAMEWORK)
include(LLDBFramework)
- add_dependencies(install-liblldb
- lldb-framework-cleanup)
- add_dependencies(install-liblldb-stripped
- lldb-framework-cleanup)
+ if (TARGET install-liblldb)
+ add_dependencies(install-liblldb
+ lldb-framework-cleanup)
+ endif()
+
+ if (TARGET install-liblldb-stripped)
+ add_dependencies(install-liblldb-stripped
+ lldb-framework-cleanup)
+ endif()
endif()