summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-29 13:23:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-29 13:23:39 (GMT)
commit6bced4bf76e33b5c80a9a821d99ac933afa6ac03 (patch)
tree990d673691ea1d837b1883d62602402f16195e22 /Modules
parente182ba735e17bd5625ddfe7f796a123a383ff02f (diff)
parentfe37b99473df00b69beede10ad4ed2472c375d4d (diff)
downloadCMake-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.cmake2
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()