Skip to content

Commit

Permalink
abseil has no minor numbers for pkgconfig metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Oct 21, 2022
1 parent b4b8871 commit 0307921
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% set version = "20220623.0" %}
{% set v_major = version.split(".")[0] %}

# shared builds for flags_* libraries are not supported on windows, see
# https://github.com/abseil/abseil-cpp/pull/1115
Expand Down Expand Up @@ -88,11 +89,11 @@ outputs:
{% endif %}

# pkg-config (should point to abseil_dll on shared windows builds)
- pkg-config --print-errors --exact-version "{{ version }}" absl_{{ each_lib }}
- pkg-config --print-errors --exact-version "{{ v_major }}" absl_{{ each_lib }}
{% endfor %}

# pkg-config (abseil_dll)
- pkg-config --print-errors --exact-version "{{ version }}" abseil_dll # [win]
- pkg-config --print-errors --exact-version "{{ v_major }}" abseil_dll # [win]

{% else %} # shared_libs == "OFF"

Expand Down Expand Up @@ -129,7 +130,7 @@ outputs:
- test ! -f $PREFIX/lib/libabsl_{{ each_lib }}${SHLIB_EXT} # [unix]

# pkg-config
- pkg-config --print-errors --exact-version "{{ version }}" absl_{{ each_lib }}
- pkg-config --print-errors --exact-version "{{ v_major }}" absl_{{ each_lib }}
{% endfor %}

{% endif %} # shared_libs == "ON" / "OFF"
Expand Down

0 comments on commit 0307921

Please sign in to comment.