From fdc95c6d19c769c2e9d7f83d7d564b8da96eb453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregoire=20Kr=C3=A4henb=C3=BChl?= Date: Fri, 30 Sep 2022 19:32:40 -0400 Subject: FindGDAL: Add library name for MSVC Debug GDAL Search for `gdald.lib`, which is how the library is now named when built with CMake under MSVC Debug. Fixes: #24015 --- Modules/FindGDAL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindGDAL.cmake b/Modules/FindGDAL.cmake index 5237e15..e6eac30 100644 --- a/Modules/FindGDAL.cmake +++ b/Modules/FindGDAL.cmake @@ -160,7 +160,7 @@ unset(_gdal_version) unset(_gdal_versions) find_library(GDAL_LIBRARY - NAMES ${_gdal_lib} ${_gdal_libnames} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL + 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 -- cgit v0.12