summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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