summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGregoire Krähenbühl <krahenbuhl@gmail.com>2022-09-30 23:32:40 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-03 14:52:58 (GMT)
commitfdc95c6d19c769c2e9d7f83d7d564b8da96eb453 (patch)
treebb3e3f42be09b06e5520e4f7f2be1cab28de1db5 /Modules
parentc7170651f48bac9e6b80c58f5e97f687d9f6c302 (diff)
downloadCMake-fdc95c6d19c769c2e9d7f83d7d564b8da96eb453.zip
CMake-fdc95c6d19c769c2e9d7f83d7d564b8da96eb453.tar.gz
CMake-fdc95c6d19c769c2e9d7f83d7d564b8da96eb453.tar.bz2
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindGDAL.cmake2
1 files changed, 1 insertions, 1 deletions
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