更新时间:2021-10-17 00:05:08
如果您查看 https://cmake.org/cmake/help/v3.0/module/FindCUDA.html ,您会发现自己的通话
If you look at https://cmake.org/cmake/help/v3.0/module/FindCUDA.html, you will find that your calling
find_package(CUDA REQUIRED)
定义 CUDA_LIBRARIES
,而不是 CUDA_LIBRARY
。
我想更改此设置将解决您的问题。
defines CUDA_LIBRARIES
, not CUDA_LIBRARY
.
I suppose that changing this will solve your problem.