You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't work in 1.9.0, 1.8.5 (and possibly 1.8.4):
$ pkg-config benchmark 'benchmark >= 1.8.0' --modversionRequested 'benchmark >= 1.8.0' but version of benchmark is v1.8.5
$ pkg-config benchmark 'benchmark' --atleast-version=1.8.0
# note: exit 1
System
Which OS, compiler, and compiler version are you using:
OS: Linux
Compiler and version: n/a
To reproduce
Given release tar ball v1.9.0.tar.gz:
$ tar xzf v1.9.0.tar.gz
$ cd benchmark-1.9.0
$ cmake -DBENCHMARK_ENABLE_TESTING=OFF...-- Google Benchmark version: v1.9.0, normalized to 1.9.0...
$ pkg-config benchmark 'benchmark >= 1.8.0' --modversionRequested 'benchmark >= 1.8.0' but version of benchmark is v1.8.5
$ PKG_CONFIG_PATH=. pkg-config --modversion 'benchmark > 1.8.0'Package dependency requirement 'benchmark > 1.8.0' could not be satisfied.Package 'benchmark' has version 'v1.9.0', required version is '> 1.8.0'
Certain version expressions appear to work, like pkg-config 'benchmark >= v1.8.0', but this does not with --atleast-version, --exact-version and so on.
v1.8.4 reports version v0.0.0 when building from tarball:
$ cmake ...-- Google Benchmark version: v0.0.0, normalized to 0.0.0...
The text was updated successfully, but these errors were encountered:
Describe the bug
The pkg-config file version field contains a leading "v" , possibly introduced in 17bc235, which breaks plain version constraints in pkg-config.
What worked in 1.8.3:
Doesn't work in 1.9.0, 1.8.5 (and possibly 1.8.4):
System
Which OS, compiler, and compiler version are you using:
To reproduce
Given release tar ball
v1.9.0.tar.gz
:Expected behavior
Possible fix
And ditto for
benchmark_main.pc
Additional context
Certain version expressions appear to work, like
pkg-config 'benchmark >= v1.8.0'
, but this does not with--atleast-version
,--exact-version
and so on.v1.8.4 reports version
v0.0.0
when building from tarball:The text was updated successfully, but these errors were encountered: