summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-01-25 03:35:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-01-25 03:35:09 +0000
commit799109a398faa38f0e9518df89cabb564a196d81 (patch)
treeef579c5b69b9d386a0f964f2b0b9fe23a9c2f09d
parent1f6fdc1658ba88a84b8b21a90d6b28d8b9b5baf6 (diff)
automatic import of ncnn
-rw-r--r--ncnn.spec5
1 files changed, 2 insertions, 3 deletions
diff --git a/ncnn.spec b/ncnn.spec
index fb83391..1d257f9 100644
--- a/ncnn.spec
+++ b/ncnn.spec
@@ -13,12 +13,11 @@
# We don't have cuda on openEuler
%bcond_without cuda
+%global have_cuda 0
-%if %{with cuda}
+%if %{without cuda}
%ifarch x86_64 aarch64
%global have_cuda 1
-%else
-%global have_cuda 0
%endif
%endif