OpenCV: fix +cuda build (#49146)
This commit is contained in:
parent
57e0798af2
commit
b5f40aa7fb
@ -940,6 +940,9 @@ def cmake_args(self):
|
|||||||
if spec.variants["cuda_arch"].value[0] != "none":
|
if spec.variants["cuda_arch"].value[0] != "none":
|
||||||
cuda_arch = spec.variants["cuda_arch"].value
|
cuda_arch = spec.variants["cuda_arch"].value
|
||||||
args.append(self.define("CUDA_ARCH_BIN", " ".join(cuda_arch)))
|
args.append(self.define("CUDA_ARCH_BIN", " ".join(cuda_arch)))
|
||||||
|
# https://github.com/opencv/opencv/pull/23021
|
||||||
|
if spec.satisfies("@4.9: ^cmake@3.18:"):
|
||||||
|
args.append(self.define("ENABLE_CUDA_FIRST_CLASS_LANGUAGE", True))
|
||||||
|
|
||||||
# TODO: this CMake flag is deprecated
|
# TODO: this CMake flag is deprecated
|
||||||
if spec.target.family == "ppc64le":
|
if spec.target.family == "ppc64le":
|
||||||
|
Loading…
Reference in New Issue
Block a user