mirror of https://github.com/AlexeyAB/darknet.git
do not enable cudnn feature if cuda is not enabled
This commit is contained in:
parent
8f3cd2840e
commit
44d29d5982
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue