Commit 88a883e6 authored by Alexander Smorkalov's avatar Alexander Smorkalov

Build fix.

parent 8660e048
...@@ -25,6 +25,8 @@ using namespace std; ...@@ -25,6 +25,8 @@ using namespace std;
using namespace cv; using namespace cv;
using namespace cv::gpu; using namespace cv::gpu;
#define throw_nogpu CV_Error(CV_GpuNotSupported, "The library is compiled without CUDA support")
#include "gpumat_cuda.hpp" #include "gpumat_cuda.hpp"
#ifdef HAVE_CUDA #ifdef HAVE_CUDA
......
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
#include "opencv2/core/core.hpp" #include "opencv2/core/core.hpp"
#include "opencv2/core/cuda_devptrs.hpp" #include "opencv2/core/cuda_devptrs.hpp"
#define throw_nogpu CV_Error(CV_GpuNotSupported, "The library is compiled without CUDA support")
namespace cv { namespace gpu namespace cv { namespace gpu
{ {
//////////////////////////////// Initialization & Info //////////////////////// //////////////////////////////// Initialization & Info ////////////////////////
......
...@@ -65,6 +65,8 @@ using namespace std; ...@@ -65,6 +65,8 @@ using namespace std;
using namespace cv; using namespace cv;
using namespace cv::gpu; using namespace cv::gpu;
#define throw_nogpu CV_Error(CV_GpuNotSupported, "The library is compiled without CUDA support")
#include "gpumat_cuda.hpp" #include "gpumat_cuda.hpp"
typedef GpuFuncTable* (*GpuFactoryType)(); typedef GpuFuncTable* (*GpuFactoryType)();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment