[geos-devel] [GEOS] #1082: Different version info from autotools / CMake builds
GEOS
geos-trac at osgeo.org
Tue Dec 1 15:33:31 PST 2020
#1082: Different version info from autotools / CMake builds
-----------------------------------+--------------------------
Reporter: Mike Taves | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.9.0
Component: Build/Install (cmake) | Version:
Severity: Unassigned | Keywords:
-----------------------------------+--------------------------
Building GEOS with both autotools and CMake yields different version info,
contained in `geos_c.h`. Here is the `diff` output comparing autotools (<)
and cmake (>):
{{{
$ diff geos-3.9.0beta1-autotools/include/geos_c.h
geos-3.9.0beta1-cmake/include/geos_c.h
61c61
< #define GEOS_VERSION_PATCH 0beta1
---
> #define GEOS_VERSION_PATCH 0
64c64
< #define GEOS_VERSION "3.9.0beta1"
---
> #define GEOS_VERSION "3.9.0"
71,73c71,73
< #define GEOS_CAPI_VERSION_MINOR 15
< #define GEOS_CAPI_VERSION_PATCH 1
< #define GEOS_CAPI_VERSION "3.9.0beta1-CAPI-1.15.1"
---
> #define GEOS_CAPI_VERSION_MINOR 14
> #define GEOS_CAPI_VERSION_PATCH 0
> #define GEOS_CAPI_VERSION "3.9.0-CAPI-1.14.0"
}}}
The output from `geos-config --version` is also different:
{{{
$ ./geos-3.9.0beta1-autotools/bin/geos-config --version
3.9.0beta1
$ ./geos-3.9.0beta1-cmake/bin/geos-config --version
3.9.0
}}}
Same with `pkgconfig pkg-config geos --modversion`:
{{{
$ PKG_CONFIG_PATH=./geos-3.9.0beta1-autotools/lib/pkgconfig pkg-config
geos --modversion
3.9.0beta1
$ PKG_CONFIG_PATH=./geos-3.9.0beta1-cmake/lib/pkgconfig pkg-config geos
--modversion
3.9.0
}}}
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1082>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list