[PROJ] cmake too new in CI

Nicklas Larsson n_larsson at yahoo.com
Wed Nov 18 09:24:16 PST 2026


The following little patch may turn the error to a warning:


--- a/ci/install.sh
+++ b/ci/install.sh
@@ -44,7 +44,7 @@ if [ "$cmp_44" = "$sorted_44" ]; then  # CMake 4.4 or later
 else  # Before CMake 4.4
     cmake_diagnostics=dev
 fi
-CMAKE_OPTIONS="-Werror=${cmake_diagnostics} --log-level=VERBOSE"
+CMAKE_OPTIONS="-Werror=${cmake_diagnostics} -Wno-error=non-target-directive --log-level=VERBOSE"
  if test "$TRAVIS" != ""; then
     # For some odd reason the tar xzvf $TAR_FILENAME doesn't work on Travis-CI …


To make the runners pass in waiting for addition of recommended use of target_include_directories

Nicklas

> On 18 Nov 2026, at 14:57, Laurențiu Nicola via PROJ <proj at lists.osgeo.org> wrote:
> 
> In my earlier PR, Even linked to https://github.com/OSGeo/gdal/pull/15528, which might help.
> 
> Laurentiu
> 
> On Wed, Nov 18, 2026, at 15:53, Javier Jimenez Shaw via PROJ wrote:
>> 
>> 
>> Hi
>> 
>> Apparently we have some problems with modern cmake in CI
>> 
>> https://github.com/OSGeo/PROJ/actions/runs/44284124926/job/134732244089
>> 
>> This is using cmake 4.5.0, that raises some warnings as errors, and does fail the test (for reasons not related to the PR). The problem is that we cannot test that (and coming) PR in macOS now.
>> I can expect that happening in the future in more platforms.
>> 
>> Can anybody help with the cmake configuration?
>> 
>> Thank you
>> Javier.
>> _______________________________________________
>> PROJ mailing list
>> PROJ at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/proj
>> 
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj



More information about the PROJ mailing list