<div dir="ltr">I have the impression that some times the runner has cmake 4.4.5 and others 4.5 (they are deploying the new version gradually).</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 20 Nov 2026 at 08:47, Nicklas Larsson <<a href="mailto:n_larsson@yahoo.com">n_larsson@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Unfortunately, the Windows CI runner comes currently with CMake 4.4.5, but `-Wnon-target-directive` is added with 4.5 [1] so that is not even a temporary solution in that case.<div><br></div><div>[1] <a href="https://cmake.org/cmake/help/latest/release/4.5.html#diagnostics" target="_blank">https://cmake.org/cmake/help/latest/release/4.5.html#diagnostics</a></div><div><div><br></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On 19 Nov 2026, at 22:25, Nicklas Larsson via PROJ <<a href="mailto:proj@lists.osgeo.org" target="_blank">proj@lists.osgeo.org</a>> wrote:</div><br><div><div>Missed replying to list, reposting.<br><br>Note the change to `-Werror=author`<br><br><br><blockquote type="cite">On 19 Nov 2026, at 21:49, Nicklas Larsson <<a href="mailto:n_larsson@yahoo.com" target="_blank">n_larsson@yahoo.com</a>> wrote:<br><br>Javier,<br><br>Try the following patch:<br><br>```<br>diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml<br>index 28683981f..a71f70507 100644<br>--- a/.github/workflows/windows.yml<br>+++ b/.github/workflows/windows.yml<br>@@ -32,7 +32,7 @@ jobs:<br>        BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}<br>        BUILD_TYPE: ${{ matrix.BUILD_TYPE }}<br>        CMAKE_GENERATOR: Ninja<br>-        CMAKE_OPTIONS: "-Werror=dev --log-level=VERBOSE"<br>+        CMAKE_OPTIONS: "-Werror=author -Wno-error=non-target-directive --log-level=VERBOSE"<br>     steps:<br>```<br><br><blockquote type="cite">On 19 Nov 2026, at 21:34, Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com" target="_blank">j1@jimenezshaw.com</a>> wrote:<br><br>Hi Mike<br><br>I tried Nicklas' suggestion in a branch, and got some errors in windows:<br><a href="https://github.com/jjimenezshaw/PROJ/actions?query=branch%3Acmake-no-error" target="_blank">https://github.com/jjimenezshaw/PROJ/actions?query=branch%3Acmake-no-error</a><br>Maybe it is just a coincidence that they are also updating cmake in windows now<br><br>(the error in code checks were there before. they are not related)<br><br><br>On Thu, 19 Nov 2026 at 11:59, Mike Taves <<a href="mailto:mwtoews@gmail.com" target="_blank">mwtoews@gmail.com</a>> wrote:<br>On Thu, 19 Nov 2026 at 08:53, Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com" target="_blank">j1@jimenezshaw.com</a>> wrote:<br><blockquote type="cite">What do you mean? I installed cmake 4.5 in a virtual environment in my computer (not available yet in pip) and I got a lot of errors.<br></blockquote><br>Yes, I see lots of errors with a developer-facing configuration:<br>./cmake-4.5.0-linux-x86_64/bin/cmake -Werror=author -S . -B _build<br><br>But no errors with a user-facing configuration:<br>./cmake-4.5.0-linux-x86_64/bin/cmake -S . -B _build<br><br>I like Nicklas's suggestion to consider adding<br>-Wno-error=non-target-directive as a workaround while a better<br>solution is developed, as it could take a while to resolve.<br></blockquote><br></blockquote><br>_______________________________________________<br>PROJ mailing list<br><a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/proj" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br></div></div></blockquote></div><br></div></div></blockquote></div>