summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorJames Bigler <jamesbigler@gmail.com>2013-03-04 20:53:27 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-12 17:37:44 (GMT)
commit3497bc2ceee67645ecd2d8966c9ae3574f8b911c (patch)
treee0bfb9a91f2b76ce0bec51fe47a26bbdf9b4ea4b /Modules/FindCUDA.cmake
parent2ea18eb0c70a0fbb5061b0f7215c40d5eade5447 (diff)
downloadCMake-3497bc2ceee67645ecd2d8966c9ae3574f8b911c.zip
CMake-3497bc2ceee67645ecd2d8966c9ae3574f8b911c.tar.gz
CMake-3497bc2ceee67645ecd2d8966c9ae3574f8b911c.tar.bz2
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.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 5a834b1..c17a360 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -605,11 +605,6 @@ endif()
# some platforms.
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(
CUDA_CUDA_LIBRARY
CUDA_CUDART_LIBRARY