mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
enable darknet as a library also when only MSVC build tools are installed
This commit is contained in:
@ -10,7 +10,11 @@ if(@OpenCV_FOUND@)
|
||||
endif()
|
||||
|
||||
if(@ENABLE_CUDA@)
|
||||
enable_language(CUDA)
|
||||
include(CheckLanguage)
|
||||
check_language(CUDA)
|
||||
if(NOT CMAKE_CUDA_COMPILER)
|
||||
message(STATUS " --> WARNING: Unable to find native CUDA integration!")
|
||||
endif()
|
||||
find_dependency(CUDA)
|
||||
cuda_select_nvcc_arch_flags(CUDA_ARCH_FLAGS ${CUDA_ARCHITECTURES})
|
||||
if(@CUDNN_FOUND@)
|
||||
|
Reference in New Issue
Block a user