<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 22.04.24 um 14:12 schrieb Even
Rouault via gdal-dev:<br>
</div>
<blockquote type="cite"
cite="mid:5d80ad65-c434-4502-b450-adaa738f5491@spatialys.com">Hi,
<br>
<br>
I've prepared a beta1 of GDAL 3.9.0 to get feedback from early
testers.
<br>
</blockquote>
<p>I did a test build in vcpkg, and I see downstream problems with
static linkage. It now raises:</p>
<p>CMake Error at
/mnt/vss/_work/1/s/scripts/buildsystems/vcpkg.cmake:859
(_find_package):<br>
_find_package given CONFIGS option followed by invalid file name
"3.8".<br>
The names given must be file names without a path and with a
".cmake"<br>
extension.<br>
Call Stack (most recent call first):<br>
/mnt/vcpkg-ci/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76
(find_package)<br>
/mnt/vcpkg-ci/installed/x64-linux/share/gdal/GDALConfig.cmake:37
(find_dependency)<br>
/mnt/vcpkg-ci/installed/x64-linux/share/gdal/vcpkg-cmake-wrapper.cmake:13
(_find_package)<br>
/mnt/vss/_work/1/s/scripts/buildsystems/vcpkg.cmake:813
(include)<br>
CMakeLists.txt:36 (find_package)<br>
</p>
<p>(Don't get distracted by vcpkg: _find_package is CMake's regular
find_package.)</p>
<p> IIUC the generated CMake config is wrong when dependency
versions are used together with config names, as in:
</p>
<p>find_dependency(GEOS NAMES GEOS CONFIGS geos-config.cmake 3.8)<br>
find_dependency(NetCDF NAMES netCDF CONFIGS netCDFConfig.cmake
4.7)</p>
<p>AFAICT the version number must be the 2nd argument. Maybe VERSION
wasn't used often enough before, or/and it is a new CMake feature.</p>
<p>A tentative patch is attached, end-to-end tests pending.<br>
</p>
<p>Kai<br>
</p>
<p><br>
</p>
<p></p>
<p><br>
</p>
</body>
</html>