Skip to content

Commit a13cbce

Browse files
authored
Update OpenCVFindLibsGrfmt.cmake
1 parent a9effee commit a13cbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/OpenCVFindLibsGrfmt.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ if(WITH_GDAL)
211211
find_package(GDAL QUIET)
212212

213213
if(NOT GDAL_FOUND)
214-
ocv_clear_vars(GDAL_LIBRARY GDAL_INCLUDE_DIR)
215214
set(HAVE_GDAL NO)
215+
ocv_clear_vars(GDAL_VERSION GDAL_LIBRARIES)
216216
else()
217217
set(HAVE_GDAL YES)
218218
ocv_include_directories(${GDAL_INCLUDE_DIR})

0 commit comments

Comments
 (0)