Skip to content

Commit d603a58

Browse files
authored
Merge pull request #3851 from vrabaud:cuda
Get cudalegacy dependents to build without CUDA
2 parents 1b84163 + aad0670 commit d603a58

File tree

1 file changed

+3
-3
lines changed
  • modules/cudalegacy/include/opencv2/cudalegacy

1 file changed

+3
-3
lines changed

modules/cudalegacy/include/opencv2/cudalegacy/private.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
5050

5151
#include "opencv2/core/private.cuda.hpp"
5252

53-
#ifndef HAVE_CUDA
54-
# error cudalegacy module requires CUDA
55-
#endif
53+
#ifdef HAVE_CUDA
5654

5755
#include "opencv2/cudalegacy.hpp"
5856

@@ -93,4 +91,6 @@ namespace cv { namespace cuda
9391

9492
//! @endcond
9593

94+
#endif HAVE_CUDA
95+
9696
#endif // OPENCV_CORE_CUDALEGACY_PRIVATE_HPP

0 commit comments

Comments
 (0)