summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-11 13:21:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-05-11 13:22:01 (GMT)
commitd54796cbd9d8794866525d5d58c573557d5fe610 (patch)
tree7b2f7651be6c9648af2a50dabcadd983319939bd /Modules
parent1dda570edc5bbb004d8561d796cdd489af741234 (diff)
parent53ffff2277c4d37380d4a55d4e251face8766d14 (diff)
downloadCMake-d54796cbd9d8794866525d5d58c573557d5fe610.zip
CMake-d54796cbd9d8794866525d5d58c573557d5fe610.tar.gz
CMake-d54796cbd9d8794866525d5d58c573557d5fe610.tar.bz2
Merge topic 'FindCUDA-sccache'
53ffff2277 FindCUDA: Add support for sccache Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2050
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDA.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index dc55e86..874fb89 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -557,10 +557,10 @@ 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")
- # 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.
+ elseif(MSVC AND "${CMAKE_C_COMPILER}" MATCHES "clcache|sccache")
+ # NVCC does not think it will work if it is passed clcache.exe or sccache.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.
set(CUDA_HOST_COMPILER "cl.exe" CACHE FILEPATH "Host side compiler used by NVCC")
else()
set(CUDA_HOST_COMPILER "${CMAKE_C_COMPILER}"