From 44d29d598266f7e934c756d8d57a042dd1453023 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sun, 21 Feb 2021 10:31:29 +0100 Subject: [PATCH] do not enable cudnn feature if cuda is not enabled --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ff659e3..0cdc25c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ elseif(ENABLE_CUDA AND NOT APPLE) elseif(ENABLE_OPENCV) list(APPEND VCPKG_MANIFEST_FEATURES "opencv-base") endif() -if(ENABLE_CUDNN AND NOT APPLE) +if(ENABLE_CUDNN AND ENABLE_CUDA AND NOT APPLE) list(APPEND VCPKG_MANIFEST_FEATURES "cudnn") endif()