Fixed compilation problem when building without CUDA
authorAndrey Kamaev <no@email>
Thu, 30 Jun 2011 17:01:15 +0000 (17:01 +0000)
committerAndrey Kamaev <no@email>
Thu, 30 Jun 2011 17:01:15 +0000 (17:01 +0000)
modules/gpu/test/test_main.cpp
modules/gpu/test/test_precomp.hpp

index fc7b5df..fcf9b78 100644 (file)
@@ -42,6 +42,7 @@
 #include "test_precomp.hpp"\r
 \r
 #ifdef HAVE_CUDA\r
+#include <cuda_runtime_api.h>\r
 \r
 void print_info()\r
 {    \r
index a4ffa1c..5ddafaa 100644 (file)
@@ -50,7 +50,6 @@
 #include <string>\r
 #include <algorithm>\r
 #include <iterator>\r
-#include <cuda_runtime_api.h>\r
 #include "cvconfig.h"\r
 #include "opencv2/core/core.hpp"\r
 #include "opencv2/highgui/highgui.hpp"\r