From 3227082292c49074d5357ea972489698e4853cbb Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 20 May 2019 13:11:18 +0200 Subject: [PATCH] Add cuda dependencies --- opencv.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opencv.spec b/opencv.spec index 058561a..f91fe1e 100644 --- a/opencv.spec +++ b/opencv.spec @@ -82,6 +82,11 @@ BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: cmake >= 2.6.3 BuildRequires: chrpath +%{?with_cuda: +BuildRequires: pkgconfig(cublas-%{?_cuda_rpm_version}) +BuildRequires: pkgconfig(cufft-%{?_cuda_rpm_version}) +BuildRequires: pkgconfig(nppc-%{?_cuda_rpm_version}) +} %{?with_eigen2:BuildRequires: eigen2-devel} %{?with_eigen3:BuildRequires: eigen3-devel} BuildRequires: gtk3-devel