From c97e169b5e42a456539633a03fa1826ee9fdd46f Mon Sep 17 00:00:00 2001 From: William Behrens <35979547+wbehrens-on-gh@users.noreply.github.com> Date: Wed, 26 Jul 2023 08:33:24 -0500 Subject: [PATCH] Avoid failure if dnn_cuda has already been removed --- recipes/opencv/4.x/conanfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/opencv/4.x/conanfile.py b/recipes/opencv/4.x/conanfile.py index 895fee1eb0186..74b3f552815f9 100644 --- a/recipes/opencv/4.x/conanfile.py +++ b/recipes/opencv/4.x/conanfile.py @@ -156,12 +156,12 @@ def configure(self): del self.options.contrib_freetype del self.options.contrib_sfm if not self.options.dnn: - del self.options.dnn_cuda + self.options.rm_safe("dnn_cuda") if not self.options.with_cuda: del self.options.with_cublas del self.options.with_cudnn del self.options.with_cufft - del self.options.dnn_cuda + self.options.rm_safe("dnn_cuda") del self.options.cuda_arch_bin if bool(self.options.with_jpeg): if self.options.get_safe("with_jpeg2000") == "jasper":