diff --git a/modules/core/include/opencv2/core/private.cuda.hpp b/modules/core/include/opencv2/core/private.cuda.hpp index cda6cbc4ae..b9955018bb 100644 --- a/modules/core/include/opencv2/core/private.cuda.hpp +++ b/modules/core/include/opencv2/core/private.cuda.hpp @@ -72,7 +72,9 @@ # include "opencv2/core/cuda_stream_accessor.hpp" # include "opencv2/core/cuda/common.hpp" +# ifndef NPP_VERSION # define NPP_VERSION (NPP_VERSION_MAJOR * 1000 + NPP_VERSION_MINOR * 100 + NPP_VERSION_BUILD) +# endif # define CUDART_MINIMUM_REQUIRED_VERSION 6050