瀏覽代碼

Merge topic 'Fix-0011263-CUDA_SDK_PATH'

1df8516 Fix for bug 0011263.
Brad King 15 年之前
父節點
當前提交
100f2ad278
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Modules/FindCUDA.cmake

+ 3 - 1
Modules/FindCUDA.cmake

@@ -612,8 +612,10 @@ else()
 endif()
 endif()
 
 
 ########################
 ########################
-# Look for the SDK stuff
+# Look for the SDK stuff.  As of CUDA 3.0 NVSDKCUDA_ROOT has been replaced with
+# NVSDKCOMPUTE_ROOT with the old CUDA C contents moved into the C subdirectory
 find_path(CUDA_SDK_ROOT_DIR common/inc/cutil.h
 find_path(CUDA_SDK_ROOT_DIR common/inc/cutil.h
+  "$ENV{NVSDKCOMPUTE_ROOT}/C"
   "$ENV{NVSDKCUDA_ROOT}"
   "$ENV{NVSDKCUDA_ROOT}"
   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\NVIDIA Corporation\\Installed Products\\NVIDIA SDK 10\\Compute;InstallDir]"
   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\NVIDIA Corporation\\Installed Products\\NVIDIA SDK 10\\Compute;InstallDir]"
   "/Developer/GPU\ Computing/C"
   "/Developer/GPU\ Computing/C"