[PROJ] cmake too new in CI
Nicklas Larsson
n_larsson at yahoo.com
Thu Nov 19 13:25:31 PST 2026
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.
>
More information about the PROJ
mailing list