From a26cfae77582f3561dc3aefe3bdad3be8bc5780a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Mon, 4 Nov 2024 14:01:25 +0100
Subject: [PATCH] fix : findCUDA was overriden by wrong variable check in
 CMakeLists.txt

This check is only here to ensure cibuildwheel runs well on the gitlab server
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bea1b39..1d094a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ endif()
 
 ##########
 # CUDA
-if(NOT $ENV{AIDGE_INSTALL} STREQUAL "")
+if(NOT $ENV{CIBUILDWHEEL} STREQUAL "")
     message(WARNING "Env var CIBUILDWHEEL detected : currently building for a release job."
                     "\nSetting manually CUDACXX, PATH & LD_LIBRARY_PATH Variables")
     list(APPEND ENV{LD_LIBRARY_PATH} /usr/local/cuda/lib64)
-- 
GitLab