Minor change to avoid errors from some versions of cmake.

This commit is contained in:
Davis King 2017-06-28 08:53:43 -04:00
parent 48c68f218e
commit e44da57705

View File

@ -10,6 +10,7 @@ add_definitions(-DDLIB_USE_CUDA)
include(find_cudnn.txt)
include_directories(${cudnn_include})
cuda_add_library(cudnn_test STATIC ../../dnn/cudnn_dlibapi.cpp ${cudnn} )
if (cudnn_include AND cudnn)
include_directories(${cudnn_include})
cuda_add_library(cudnn_test STATIC ../../dnn/cudnn_dlibapi.cpp ${cudnn} )
endif()