[pgrouting-dev] Patch for CMakeLists.txt to support more Postgres variants
Sandeep Thakkar
sandeep.thakkar at enterprisedb.com
Sun Sep 4 21:11:27 PDT 2022
Hi,
I was trying to compile pgRouting-3.3.1 against EnterpriseDB Postgres
(EPAS) on Rocky Linux 8 instance and the build failed with the following
error:
CMake Error at CMakeLists.txt:183 (message):
> PostgreSQL 9.2.0 or greater is required.
Attached is the patch for CMakeLists.txt to support additional Postgres
variants along with community PostgreSQL. If there is a better way to
submit the patch (https://docs.pgrouting.org/doxygen/ ?) then do let me
know and I'll be happy to do that.
--
> The current logic to get the version from the version string depends
> on the position (11) which may not work with other postgres variants
> because of the different strings they may carry like EnterpriseDB for
> an example.
So instead of string substring, use string regex match to get the
> version. Also, move up the code to replace the strings alpha/beta/rc
> a bit to support the patch
Tested on Linux
--
--
Sandeep Thakkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20220905/2a8ad4b7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.patch
Type: application/octet-stream
Size: 1825 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20220905/2a8ad4b7/attachment.obj>
More information about the pgrouting-dev
mailing list