summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorWill Feng <yf225@cornell.edu>2018-05-07 14:42:59 -0400
committerGitHub <noreply@github.com>2018-05-07 14:42:59 -0400
commit2fdc00e41c2a2be661f3fa69da14573743b27e20 (patch)
treeaf4ea4af67310eea81f2c1153a60f3fe12b8017c /cmake
parentf1e38725bfe73a29335d921786250bc71b15f7b6 (diff)
downloadpytorch-2fdc00e41c2a2be661f3fa69da14573743b27e20.tar.gz
pytorch-2fdc00e41c2a2be661f3fa69da14573743b27e20.tar.bz2
pytorch-2fdc00e41c2a2be661f3fa69da14573743b27e20.zip
Use sccache for Windows build (#7331)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules_CUDA_fix/FindCUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules_CUDA_fix/FindCUDA.cmake b/cmake/Modules_CUDA_fix/FindCUDA.cmake
index d4f296243b..fd22b467c1 100644
--- a/cmake/Modules_CUDA_fix/FindCUDA.cmake
+++ b/cmake/Modules_CUDA_fix/FindCUDA.cmake
@@ -557,7 +557,7 @@ else()
set(c_compiler_realpath "")
endif()
set(CUDA_HOST_COMPILER "${c_compiler_realpath}" CACHE FILEPATH "Host side compiler used by NVCC")
- elseif(MSVC AND "${CMAKE_C_COMPILER}" MATCHES "clcache")
+ elseif(MSVC AND ("${CMAKE_C_COMPILER}" MATCHES "clcache" OR "${CMAKE_C_COMPILER}" MATCHES "sccache"))
# NVCC does not think it will work if it is passed clcache.exe as the host
# compiler, which means that builds with CC=cl.exe won't work. Best to just
# feed it whatever the actual cl.exe is as the host compiler.