openvino: opencvConfig.cmake attempts to find_package(CUDA)

This commit is contained in:
Someone Serge
2023-12-04 20:24:32 +00:00
parent 31f1b517cd
commit 0c4b1fcfba
2 changed files with 8 additions and 0 deletions
@@ -476,6 +476,8 @@ effectiveStdenv.mkDerivation {
'';
passthru = {
cudaSupport = enableCuda;
tests = {
inherit (gst_all_1) gst-plugins-bad;
}
@@ -3,6 +3,7 @@
, fetchFromGitHub
, fetchurl
, substituteAll
, cudaSupport ? opencv.cudaSupport or false
# build
, addOpenGLRunpath
@@ -21,6 +22,7 @@
, protobuf
, pugixml
, tbb
, cudaPackages
}:
let
@@ -68,6 +70,8 @@ stdenv.mkDerivation rec {
setuptools
]))
shellcheck
] ++ lib.optionals cudaSupport [
cudaPackages.cuda_nvcc
];
patches = [
@@ -133,6 +137,8 @@ stdenv.mkDerivation rec {
protobuf
pugixml
tbb
] ++ lib.optionals cudaSupport [
cudaPackages.cuda_cudart
];
enableParallelBuilding = true;