summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompiler.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-13 17:58:35 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-12 15:39:02 (GMT)
commit65c1e012ffc17ab77e5aaa84b22241a81de4c2ce (patch)
tree9d128ae87ce75ea40fc71e379f7f564fde5937a8 /Modules/CMakeCUDACompiler.cmake.in
parent945dd207b6ca6ca38e3b87247836eb1b3d5f8a77 (diff)
downloadCMake-65c1e012ffc17ab77e5aaa84b22241a81de4c2ce.zip
CMake-65c1e012ffc17ab77e5aaa84b22241a81de4c2ce.tar.gz
CMake-65c1e012ffc17ab77e5aaa84b22241a81de4c2ce.tar.bz2
CUDA: Detect use of MSVC host compiler
Report it in `CMAKE_CUDA_SIMULATE_{ID,VERSION}`.
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r--Modules/CMakeCUDACompiler.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in
index 8a6c0bc..18291b5 100644
--- a/Modules/CMakeCUDACompiler.cmake.in
+++ b/Modules/CMakeCUDACompiler.cmake.in
@@ -4,6 +4,8 @@ set(CMAKE_CUDA_HOST_LINK_LAUNCHER "@CMAKE_CUDA_HOST_LINK_LAUNCHER@")
set(CMAKE_CUDA_COMPILER_ID "@CMAKE_CUDA_COMPILER_ID@")
set(CMAKE_CUDA_COMPILER_VERSION "@CMAKE_CUDA_COMPILER_VERSION@")
set(CMAKE_CUDA_STANDARD_COMPUTED_DEFAULT "@CMAKE_CUDA_STANDARD_COMPUTED_DEFAULT@")
+set(CMAKE_CUDA_SIMULATE_ID "@CMAKE_CUDA_SIMULATE_ID@")
+set(CMAKE_CUDA_SIMULATE_VERSION "@CMAKE_CUDA_SIMULATE_VERSION@")
set(CMAKE_CUDA_COMPILER_ENV_VAR "CUDACXX")
set(CMAKE_CUDA_HOST_COMPILER_ENV_VAR "CUDAHOSTCXX")