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/Platform | |
parent | 65c1e012ffc17ab77e5aaa84b22241a81de4c2ce (diff) | |
download | CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.zip CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.tar.gz CMake-a2e80cb0853b3b8306069b833ec8c2128a77b072.tar.bz2 |
CUDA: Detect MSVC architecture id
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-MSVC.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake index f506500..0e90d35 100644 --- a/Modules/Platform/Windows-MSVC.cmake +++ b/Modules/Platform/Windows-MSVC.cmake @@ -54,6 +54,8 @@ if(NOT MSVC_VERSION) set(_compiler_version ${CMAKE_CXX_SIMULATE_VERSION}) elseif(CMAKE_Fortran_SIMULATE_VERSION) set(_compiler_version ${CMAKE_Fortran_SIMULATE_VERSION}) + elseif(CMAKE_CUDA_SIMULATE_VERSION) + set(_compiler_version ${CMAKE_CUDA_SIMULATE_VERSION}) elseif(CMAKE_C_COMPILER_VERSION) set(_compiler_version ${CMAKE_C_COMPILER_VERSION}) else() |