FindGDAL doesnt find GDAL 3.5 under windows debug
This is because this line:
does not include gdald.lib, which is how the library is now named when build with CMake with MSVC Debug.
Current code:
find_library(GDAL_LIBRARY
NAMES ${_gdal_lib} ${_gdal_libnames} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
HINTS
ENV GDAL_DIR
ENV GDAL_ROOT
${_gdal_libpath}
PATH_SUFFIXES lib
DOC "Path to the GDAL library"
)
Possible fix:
find_library(GDAL_LIBRARY
NAMES ${_gdal_lib} ${_gdal_libnames} gdal gdald gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
HINTS
ENV GDAL_DIR
ENV GDAL_ROOT
${_gdal_libpath}
PATH_SUFFIXES lib
DOC "Path to the GDAL library"
)