From aad06709916749e509645a460de983332096462b Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 19 Dec 2024 13:13:29 +0100 Subject: [PATCH] Get cudalegacy dependents to build without CUDA --- modules/cudalegacy/include/opencv2/cudalegacy/private.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cudalegacy/include/opencv2/cudalegacy/private.hpp b/modules/cudalegacy/include/opencv2/cudalegacy/private.hpp index 79f9e635bf0..fd3286c17eb 100644 --- a/modules/cudalegacy/include/opencv2/cudalegacy/private.hpp +++ b/modules/cudalegacy/include/opencv2/cudalegacy/private.hpp @@ -50,9 +50,7 @@ #include "opencv2/core/private.cuda.hpp" -#ifndef HAVE_CUDA -# error cudalegacy module requires CUDA -#endif +#ifdef HAVE_CUDA #include "opencv2/cudalegacy.hpp" @@ -93,4 +91,6 @@ namespace cv { namespace cuda //! @endcond +#endif HAVE_CUDA + #endif // OPENCV_CORE_CUDALEGACY_PRIVATE_HPP