Skip to content

Commit

Permalink
fix pkg-config metadata for shared abseil on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Feb 20, 2024
1 parent 6c58b9a commit 9062aa9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/install.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
include(GNUInstallDirs)

foreach(_target IN LISTS protobuf_ABSL_USED_TARGETS)
string(REPLACE :: _ _modified_target ${_target})
# shared abseil on windows breaks the absl::foo -> absl_foo replacement logic -
# preempt this by a more specific replace (harmless if it doesn't apply); see GH-15883
string(REPLACE "absl::abseil_dll" "abseil_dll" _modified_target ${_target})
string(REPLACE :: _ _modified_target ${_modified_target})
list(APPEND _pc_targets ${_modified_target})
endforeach()
list(APPEND _pc_targets "utf8_range")
Expand Down

0 comments on commit 9062aa9

Please sign in to comment.