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()