diff options
author | Brad King <brad.king@kitware.com> | 2017-09-29 13:23:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-29 13:23:39 (GMT) |
commit | 6bced4bf76e33b5c80a9a821d99ac933afa6ac03 (patch) | |
tree | 990d673691ea1d837b1883d62602402f16195e22 /Modules | |
parent | e182ba735e17bd5625ddfe7f796a123a383ff02f (diff) | |
parent | fe37b99473df00b69beede10ad4ed2472c375d4d (diff) | |
download | CMake-6bced4bf76e33b5c80a9a821d99ac933afa6ac03.zip CMake-6bced4bf76e33b5c80a9a821d99ac933afa6ac03.tar.gz CMake-6bced4bf76e33b5c80a9a821d99ac933afa6ac03.tar.bz2 |
Merge topic 'cuda_9_support'
fe37b994 CUDA: Add support for requesting C++98 under CUDA 9
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1315
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index 785e269..1c91654 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -26,6 +26,8 @@ else() set(CMAKE_CUDA11_EXTENSION_COMPILE_OPTION "-std=c++11") if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 9.0) + set(CMAKE_CUDA98_STANDARD_COMPILE_OPTION "-std=c++03") + set(CMAKE_CUDA98_EXTENSION_COMPILE_OPTION "-std=c++03") set(CMAKE_CUDA14_STANDARD_COMPILE_OPTION "-std=c++14") set(CMAKE_CUDA14_EXTENSION_COMPILE_OPTION "-std=c++14") endif() |