message: [CMake] Copy swift resource dir only when building standalone
  When building with a unified setup (lldb and swift are a part of the same build)
  lldb should be able to use the swift libdir from the swift build.
diff: @@ -201,6 +201,9 @@ add_custom_command_target(
  ALL
  DEPENDS ${clang_headers_target})
  +# Only copy the swift resource directory if you are building lldb standalone.
  +# Otherwise, just rely on the swift libdir available from the swift build.
  +if(LLDB_BUILT_STANDALONE)
  add_custom_command_target(
  copy-swift-resource-dir
  COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory" "${SWIFT_RESOURCE_PATH}" "${lib_dir}/lldb/swift/"
  @@ -208,6 +211,7 @@ add_custom_command_target(
  VERBATIM
  ALL
  DEPENDS ${SWIFT_RESOURCE_PATH})
  +endif()
  add_dependencies(liblldb ${copy-clang-resource-dir} ${copy-swift-resource-dir})
  @@ -218,7 +222,9 @@ install(
  DIRECTORY "${lib_dir}/lldb/clang"
  DESTINATION lib${LLVM_LIBDIR_SUFFIX}/lldb/)
  +if(LLDB_BUILT_STANDALONE)
  install(
  DIRECTORY "${lib_dir}/lldb/swift"
  DESTINATION lib${LLVM_LIBDIR_SUFFIX}/lldb/)
  +endif()
  