use_abseil_links.patch 627 B

12345678910111213
  1. diff --git a/cmake/abseil-cpp.cmake b/cmake/abseil-cpp.cmake
  2. index a4e9d22..5e5d4d5 100644
  3. --- a/cmake/abseil-cpp.cmake
  4. +++ b/cmake/abseil-cpp.cmake
  5. @@ -37,7 +37,7 @@ elseif(protobuf_ABSL_PROVIDER STREQUAL "package")
  6. endif()
  7. set(_protobuf_FIND_ABSL "if(NOT TARGET absl::strings)\n find_package(absl CONFIG)\nendif()")
  8. -if (BUILD_SHARED_LIBS AND MSVC)
  9. +if (FALSE)
  10. # On MSVC Abseil is bundled into a single DLL.
  11. # This condition is necessary as of abseil 20230125.3 when abseil is consumed via add_subdirectory,
  12. # the abseil_dll target is named abseil_dll, while if abseil is consumed via find_package, the target