[cmake-developers] [CMake 0011719]: FindCUDA should look for libcuda in /usr/lib{, 64}/nvidia

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 18 16:08:15 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11719 
====================================================================== 
Reported By:                Orion Poplawski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11719
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-18 16:08 EST
Last Modified:              2011-01-18 16:08 EST
====================================================================== 
Summary:                    FindCUDA should look for libcuda in
/usr/lib{,64}/nvidia
Description: 
The rpmfusion nvidia driver packages install libcuda.so in /usr/lib{,64}/nvidia.
 I think FindCUDA should add that to the search path.

diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 1547b19..e3c7533 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -567,7 +567,7 @@ endif()
 
 # 1.1 toolkit on linux doesn't appear to have a separate library on
 # some platforms.
-find_library_local_first(CUDA_CUDA_LIBRARY cuda "\"cuda\" library (older
versions only).")
+find_library_local_first(CUDA_CUDA_LIBRARY cuda PATH_SUFFIXES nvdia DOC
"\"cuda\" library (older
 
 # Add cuda library to the link line only if it is found.
 if (CUDA_CUDA_LIBRARY)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-18 16:08 Orion PoplawskiNew Issue                                    
======================================================================




More information about the cmake-developers mailing list