<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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:</div><div class="gmail_default" style="font-size:small"><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">CMake Error at CMakeLists.txt:183 (message):<br>   PostgreSQL 9.2.0 or greater is required.</blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">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 (<a href="https://docs.pgrouting.org/doxygen/">https://docs.pgrouting.org/doxygen/</a> ?) then do let me know and I'll be happy to do that.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">   </span>The current logic to get the version from the version string depends<br>    on the position (11) which may not work with other postgres variants<br>    because of the different strings they may carry like EnterpriseDB for<br>    an example.</blockquote><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    So instead of string substring, use string regex match to get the<br>    version. Also, move <span class="gmail_default" style="font-size:small">up </span>the code to replace the strings alpha/beta/rc<span class="gmail_default" style="font-size:small"><br></span>    <span class="gmail_default" style="font-size:small">a bit </span>to support the patch</blockquote><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">    Tested on Linux</blockquote><div class="gmail_default" style="font-size:small">--</div><div class="gmail_default" style="font-size:small"><br></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2">Sandeep Thakkar</font><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div>