[PROJ] cmake too new in CI

Nicklas Larsson n_larsson at yahoo.com
Thu Nov 19 23:46:43 PST 2026


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.

[1] https://cmake.org/cmake/help/latest/release/4.5.html#diagnostics




> On 19 Nov 2026, at 22:25, Nicklas Larsson via PROJ <proj at lists.osgeo.org> wrote:
> 
> Missed replying to list, reposting.
> 
> Note the change to `-Werror=author`
> 
> 
>> On 19 Nov 2026, at 21:49, Nicklas Larsson <n_larsson at yahoo.com> wrote:
>> 
>> Javier,
>> 
>> Try the following patch:
>> 
>> ```
>> diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
>> index 28683981f..a71f70507 100644
>> --- a/.github/workflows/windows.yml
>> +++ b/.github/workflows/windows.yml
>> @@ -32,7 +32,7 @@ jobs:
>>        BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}
>>        BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
>>        CMAKE_GENERATOR: Ninja
>> -        CMAKE_OPTIONS: "-Werror=dev --log-level=VERBOSE"
>> +        CMAKE_OPTIONS: "-Werror=author -Wno-error=non-target-directive --log-level=VERBOSE"
>>     steps:
>> ```
>> 
>>> On 19 Nov 2026, at 21:34, Javier Jimenez Shaw <j1 at jimenezshaw.com> wrote:
>>> 
>>> Hi Mike
>>> 
>>> I tried Nicklas' suggestion in a branch, and got some errors in windows:
>>> https://github.com/jjimenezshaw/PROJ/actions?query=branch%3Acmake-no-error
>>> Maybe it is just a coincidence that they are also updating cmake in windows now
>>> 
>>> (the error in code checks were there before. they are not related)
>>> 
>>> 
>>> On Thu, 19 Nov 2026 at 11:59, Mike Taves <mwtoews at gmail.com> wrote:
>>> On Thu, 19 Nov 2026 at 08:53, Javier Jimenez Shaw <j1 at jimenezshaw.com> wrote:
>>>> 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.
>>> 
>>> Yes, I see lots of errors with a developer-facing configuration:
>>> ./cmake-4.5.0-linux-x86_64/bin/cmake -Werror=author -S . -B _build
>>> 
>>> But no errors with a user-facing configuration:
>>> ./cmake-4.5.0-linux-x86_64/bin/cmake -S . -B _build
>>> 
>>> I like Nicklas's suggestion to consider adding
>>> -Wno-error=non-target-directive as a workaround while a better
>>> solution is developed, as it could take a while to resolve.
>> 
> 
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20261120/72d0b37d/attachment.htm>


More information about the PROJ mailing list