do not enable cudnn feature if cuda is not enabled

This commit is contained in:
Stefano Sinigardi 2021-02-21 10:31:29 +01:00
parent 8f3cd2840e
commit 44d29d5982
1 changed files with 1 additions and 1 deletions

View File

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