diff options
author | Thomas Dinges <blender@dingto.org> | 2011-10-17 02:06:35 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-10-17 02:06:35 +0400 |
commit | 590a524323b6a5672a759a70e25226e4f6f2855c (patch) | |
tree | 1813ea61793b968074b24bfac4a324012e453c10 | |
parent | 7b06c1718b3362f8ddf5eb3815bab8fd1abce428 (diff) |
Cycles:
Add cmake path for the CUDA toolkit (default installation) on windows.
-rw-r--r-- | intern/cycles/cmake/external_libs.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake index fb7ba9cc3f2..07d45f9dd5d 100644 --- a/intern/cycles/cmake/external_libs.cmake +++ b/intern/cycles/cmake/external_libs.cmake @@ -89,8 +89,11 @@ endif() # CUDA if(WITH_CYCLES_CUDA) - - set(CYCLES_CUDA "/usr/local/cuda" CACHE PATH "Path to CUDA installation") + if(WIN32) + set(CYCLES_CUDA "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v4.0" CACHE PATH "Path to CUDA installation") + else() + set(CYCLES_CUDA "/usr/local/cuda" CACHE PATH "Path to CUDA installation") + endif() set(CYCLES_CUDA_ARCH sm_10 sm_11 sm_12 sm_13 sm_20 sm_21 CACHE STRING "CUDA architectures to build for") set(CYCLES_CUDA_MAXREG 24 CACHE STRING "CUDA maximum number of register to use") |