Open SunBlack opened 4 days ago
Note: Had this issue already on our CI when checking our via
so the issue is not the dev suffix, right ?
I believe that find_package(GDAL 3.3 CONFIG REQUIRED)
indicates that you want exactly version 3.3, so it is expected to fail with other 3.x
GDAL config is generated with compatibility setting "same minor version": https://github.com/OSGeo/gdal/blob/1344d8ddd5438668d99568ae603fbfa439673d3a/gdal.cmake#L561-L564
Note: Had this issue already on our CI when checking our via
so the issue is not the dev suffix, right ?
Wanted to mention with it: Even when checking out a tag, ${GDAL_VERSION}
is 3.10.0dev
and not just 3.10.0
. So at first I thought it was due to suffix, but VERSION_LESS
or VERSION_GREATER_EQUAL
can handle it.
I believe that
find_package(GDAL 3.3 CONFIG REQUIRED)
indicates that you want exactly version 3.3, so it is expected to fail with other 3.x
No, for this the keyword EXACT
exists.
@dg0yt Ahh forgot that this could be the reasons as most projects are not this strict. Is there any reason, why this is not SameMajorVersion
? I'm not sure which deprecation cycle GDAL follows, but since our code works with GDAL 3.0 - 3.10 I assume that only things are added, but nothing is removed and ABI stability is irrelevant when building (since you are fresh linking and not just swap the binaries without relinking). Didn't checked it now, but I assume it is also not possible to pass version range, or? (As this is a CMake 3.19 feature)
, but nothing is removed and ABI stability is irrelevant when building (
There are sometimes C++ API breakage in the 3.x series (tend to affect "obscure" parts of the API)
With #11335 I believe there's nothing left preventing this ticket to be close?
What is the bug?
In our CMake file we have this line:
But this fails in case we building a dev build of CMake
Note: Had this issue already on our CI when checking our via
Shouldn't the
dev
removed on the commits with a release tag? Didn't checked the CMake source in which cases thedev
bill be added and when not.Steps to reproduce the issue
See bug decription
Versions and provenance
Windows & Linux
Additional context
No response