Merge pull request #9754 from sturkmen72:patch-1

This commit is contained in:
Alexander Alekhin 2017-10-02 15:26:37 +00:00
commit 2a2537725a

View File

@ -211,8 +211,8 @@ if(WITH_GDAL)
find_package(GDAL QUIET)
if(NOT GDAL_FOUND)
ocv_clear_vars(GDAL_LIBRARY GDAL_INCLUDE_DIR)
set(HAVE_GDAL NO)
ocv_clear_vars(GDAL_VERSION GDAL_LIBRARIES)
else()
set(HAVE_GDAL YES)
ocv_include_directories(${GDAL_INCLUDE_DIR})