From ae933db526af5b387b95dd0afefb3b7ea1f345a1 Mon Sep 17 00:00:00 2001 From: Marvin Smith Date: Mon, 11 May 2015 20:27:50 -0700 Subject: [PATCH] Fixing the gdal include error that Macports seems to only mess up. --- cmake/OpenCVFindLibsGrfmt.cmake | 1 + modules/imgcodecs/src/grfmt_gdal.hpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/OpenCVFindLibsGrfmt.cmake b/cmake/OpenCVFindLibsGrfmt.cmake index a45157f6e..b5f38279e 100644 --- a/cmake/OpenCVFindLibsGrfmt.cmake +++ b/cmake/OpenCVFindLibsGrfmt.cmake @@ -208,5 +208,6 @@ if(WITH_GDAL) set(HAVE_GDAL NO) else() set(HAVE_GDAL YES) + ocv_include_directories(${GDAL_INCLUDE_DIR}) endif() endif() diff --git a/modules/imgcodecs/src/grfmt_gdal.hpp b/modules/imgcodecs/src/grfmt_gdal.hpp index 73d39c947..027396049 100644 --- a/modules/imgcodecs/src/grfmt_gdal.hpp +++ b/modules/imgcodecs/src/grfmt_gdal.hpp @@ -52,9 +52,9 @@ #include /// Geospatial Data Abstraction Library -#include -#include -#include +#include +#include +#include /// Start of CV Namespace