)]}'
{
  "commit": "87b3bc7c55620599a40e3ee24268a7a1267d0455",
  "tree": "0410c51c2333ad3ca8ae857fd5e00b989fe78aa1",
  "parents": [
    "6809f6c386d01eaea703518a537f95bfd1e909ab"
  ],
  "author": {
    "name": "Silvio Traversaro",
    "email": "silvio@traversaro.it",
    "time": "Mon Jun 05 15:01:50 2023 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Jun 05 15:08:55 2023 -0700"
  },
  "message": "CMake: Fix abseil_dll target name when using find_package(absl) (#12978)\n\nThis additional if  is necessary as of abseil 20230125.3 when abseil is consumed via add_subdirectory,\nthe abseil_dll target  is named abseil_dll, while if abseil is consumed via find_package, the target is called `absl::abseil_dll` .\n\nOnce https://github.com/abseil/abseil-cpp/pull/1466 is merged and released in the minimum version of  abseil required by protobuf, it is possible to always link `absl::abseil_dll` and `absl::abseil_test_dll` and remove the if.\n\nYou may wonder how linking worked at all before when `protobuf_ABSL_PROVIDER STREQUAL \"package\"`, as `abseil_dll` was not an imported target defined by `find_package(absl)`. The reason behind this is that if a name that is not an imported target is passed to `target_link_libraries`, it is just regarded as a C++ library name. So, in the end the `abseil_dll` library was correctly linked, simply all the transitive usage requirements defined by the `absl::abseil_dll` target were not propagated, that could lead to compilation errors if abseil was compiled with the `ABSL_PROPAGATE_CXX_STD` CMake option enabled.\n\nCloses #12978\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/protocolbuffers/protobuf/pull/12978 from traversaro:patch-1 39dd074281161fa0c4be69035d33b41a50e048c2\nPiperOrigin-RevId: 537990391\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e7bfb2b15f8f96f60706a7bc554d4b1caebd8244",
      "old_mode": 33188,
      "old_path": "cmake/abseil-cpp.cmake",
      "new_id": "b50fb89e6c3ed309629f0d40c210f28caef7e0ff",
      "new_mode": 33188,
      "new_path": "cmake/abseil-cpp.cmake"
    }
  ]
}
