瀏覽代碼

FindCUDA: Search for libraries in <prefix>/lib/<arch>/nvidida-current.

Ubuntu install the CUDA libraries into a location that is different
than the default location provided by the NVidia installer. So we
teach the FindCUDA package to also find the Ubuntu install location.
Robert Maynard 12 年之前
父節點
當前提交
09f00a6371
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Modules/FindCUDA.cmake

+ 5 - 1
Modules/FindCUDA.cmake

@@ -607,7 +607,11 @@ macro(cuda_find_library_local_first_with_path_ext _var _names _doc _path_ext )
     NO_DEFAULT_PATH
     )
   # Search default search paths, after we search our own set of paths.
-  find_library(${_var} NAMES ${_names} DOC ${_doc})
+  find_library(${_var}
+    NAMES ${_names}
+    PATHS "/usr/lib/nvidia-current"
+    DOC ${_doc}
+    )
 endmacro()
 
 macro(cuda_find_library_local_first _var _names _doc)