<p dir="ltr">Regina,</p>
<p dir="ltr">Will do. If I submit a PR to your github mirror, will the CI bots pick up on it? Or does it need to be submitted directly to the repo on osgeo?</p>
<p dir="ltr">I can make a ticket as well if you would like.</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2024, 12:00 PM Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word"><div class="m_7233959001498947565WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt">Will,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the work thus far. Yes we’d be willing to accept such patches assuming it doesn’t break other systems.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Can you submit a pull request, maybe mark it as WIP if you feel it’s not yet in a condition to be accepted. That way we can at least test more easily against our various CI bots.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Regina<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Will Bowers <<a href="mailto:wbowers314@gmail.com" target="_blank" rel="noreferrer">wbowers314@gmail.com</a>> <br><b>Sent:</b> Wednesday, July 17, 2024 12:56 PM<br><b>To:</b> Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank" rel="noreferrer">pramsey@cleverelephant.ca</a>><br><b>Cc:</b> Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank" rel="noreferrer">lr@pcorp.us</a>>; PostGIS Development Discussion <<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-devel@lists.osgeo.org</a>><br><b>Subject:</b> Re: CMake/MSVC Support<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">All,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks for the info. Like anyone else, I have personal opinions about CMake and Meson, but those aren't terribly important right now. There are some source-level changes needed to build postgis (and with some of the lwgeom source files bundled with postgis, which I assume is some kind of fork of lwgeom)... until those changes are made, can't compile on MSVC with CMake, Meson, or anything else.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Here are the changes needed that I have identified so far:<u></u><u></u></p></div><div><p class="MsoNormal">1. Macro changes needed with the way math constants in MSVC... need to define <span class="m_7233959001498947565gmail-pl-s1">_USE_MATH_DEFINES</span> first<u></u><u></u></p></div><div><p class="MsoNormal">2. Some lwgeom code uses <span class="m_7233959001498947565gmail-blob-code-inner">__attribute__ ((</span><span class="m_7233959001498947565gmail-pl-en">format</span>... ))<u></u><u></u></p></div><div><p class="MsoNormal">3. There are some predeclarations that trigger compiler error C2375 even with /std:c17 because of the way you expose symbols to DLLs in MSVC<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have put together a patch for (1) and (2) here: <a href="https://github.com/postgis/postgis/compare/master...ralian:postgis-cmake:msvc_compat" target="_blank" rel="noreferrer">https://github.com/postgis/postgis/compare/master...ralian:postgis-cmake:msvc_compat</a><u></u><u></u></p></div><div><p class="MsoNormal">(3) is going to require a lot more effort and testing. In the meantime, would you consider accepting something like this linked change?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Furthermore, Zimanyi, I will have a look at your CMake scripts and let you know if I build anything you might find useful.<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Wed, Jul 17, 2024 at 10:13<span style="font-family:"Arial",sans-serif"> </span>AM Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank" rel="noreferrer">pramsey@cleverelephant.ca</a>> wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-bottom:12.0pt">Tracks right for me. Cmake and postgis has never been a priority, mostly because we need to integrate with the postgresql build, and nothing happened there for cmake. As Regina mentioned, doing something with meson is a more fruitful path to an MSVC build, at this point.<br><br>P<br><br>> On Jul 16, 2024, at 10:40<span style="font-family:"Arial",sans-serif"> </span>PM, Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank" rel="noreferrer">lr@pcorp.us</a>> wrote:<br>> <br>> We had debates about it a long time ago, but none of us were interested in putting in the effort to make it work<br>> and those that did put in effort dropped a half done patch and left.<br>> Even though I’m a windows user, I don’t like using MSVC except when I’m forced to so I’m personally not interested in working on CMake just to support MSVC.<br>> If we go any route, it would be most likely Meson to be in line with PostgreSQL proper which does support MSVC in their Meson tooling.<br>> But this is my VERY VERY opinionated rehash of history that has passed.<br>> Anyone else want to give an alternative view of our CMake past history discussions.<br>> Thanks,<br>> Regina<br>> From: Will Bowers <<a href="mailto:wbowers314@gmail.com" target="_blank" rel="noreferrer">wbowers314@gmail.com</a>> <br>> Sent: Tuesday, July 16, 2024 8:00 PM<br>> To: <a href="mailto:postgis-devel@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-devel@lists.osgeo.org</a><br>> Subject: CMake/MSVC Support<br>> Hello,<br>> I was wondering if PostGIS has any current, past, or planned support for CMake? I have seen some old forks of PostGIS with some CMake project files. I also saw some very old posts talking about building PostGIS with CMake, but I don't see anything up to date on the subject.<br>> My ultimate goal is to get PostGIS building with MSVC as well.<br>> Let me know if you have any resources for me, or if you are interested in someone getting this working!<br>> Will<br><br><u></u><u></u></p></blockquote></div></div></div></div></blockquote></div>