diff options
author | Brad King <brad.king@kitware.com> | 2016-12-13 18:00:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 15:39:02 (GMT) |
commit | a2e80cb0853b3b8306069b833ec8c2128a77b072 (patch) | |
tree | 36c026272fbccb547c3e6a6c053a596884bdb559 /Modules/CMakeDetermineCUDACompiler.cmake | |
parent | 65c1e012ffc17ab77e5aaa84b22241a81de4c2ce (diff) | |
download | CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.zip CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.tar.gz CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.tar.bz2 |
CUDA: Detect MSVC architecture id
Diffstat (limited to 'Modules/CMakeDetermineCUDACompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCUDACompiler.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake index e03de7e..d3024c7 100644 --- a/Modules/CMakeDetermineCUDACompiler.cmake +++ b/Modules/CMakeDetermineCUDACompiler.cmake @@ -70,6 +70,10 @@ if(NOT CMAKE_CUDA_COMPILER_ID_RUN) endif() include(CMakeFindBinUtils) +if(MSVC_CUDA_ARCHITECTURE_ID) + set(SET_MSVC_CUDA_ARCHITECTURE_ID + "set(MSVC_CUDA_ARCHITECTURE_ID ${MSVC_CUDA_ARCHITECTURE_ID})") +endif() #if this compiler vendor is matches NVIDIA we can determine #what the host compiler is. This only needs to be done if the CMAKE_CUDA_HOST_COMPILER |