FindCUDA: Remove linkage against CUDA driver library (#13084)
The CUDA runtime library (libcudart) doesn't depend on the driver API library (libcuda) and shouldn't be used to link CUDA run time codes.
This commit is contained in:
parent
2ea18eb0c7
commit
3497bc2cee
|
@ -605,11 +605,6 @@ endif()
|
||||||
# some platforms.
|
# some platforms.
|
||||||
find_library_local_first(CUDA_CUDA_LIBRARY cuda "\"cuda\" library (older versions only).")
|
find_library_local_first(CUDA_CUDA_LIBRARY cuda "\"cuda\" library (older versions only).")
|
||||||
|
|
||||||
# Add cuda library to the link line only if it is found.
|
|
||||||
if (CUDA_CUDA_LIBRARY)
|
|
||||||
set(CUDA_LIBRARIES ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(
|
mark_as_advanced(
|
||||||
CUDA_CUDA_LIBRARY
|
CUDA_CUDA_LIBRARY
|
||||||
CUDA_CUDART_LIBRARY
|
CUDA_CUDART_LIBRARY
|
||||||
|
|
Loading…
Reference in New Issue