diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-08-30 14:15:10 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-11-14 16:36:43 (GMT) |
commit | ce4ec876ceb73f52055b617374c04dbbbfd2a98d (patch) | |
tree | 57b008b15d2d51fd2a189f495ce869a99ebada73 /Modules/Compiler | |
parent | f8aac21947f43a0e886a3cc3655514abb95bb260 (diff) | |
download | CMake-ce4ec876ceb73f52055b617374c04dbbbfd2a98d.zip CMake-ce4ec876ceb73f52055b617374c04dbbbfd2a98d.tar.gz CMake-ce4ec876ceb73f52055b617374c04dbbbfd2a98d.tar.bz2 |
CUDA: Add support language levels (98/11)
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index 9fcd8d7..ae51138 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -8,9 +8,10 @@ set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS -shared) set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=) set(CMAKE_CUDA_COMPILE_OPTIONS_VISIBILITY -Xcompiler=-fvisibility=) -if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 7.0) - set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "-std=c++11") - set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-std=c++11") - set(CMAKE_CUDA11_STANDARD_COMPILE_OPTION "-std=c++11") - set(CMAKE_CUDA11_EXTENSION_COMPILE_OPTION "-std=c++11") -endif() + +set(CMAKE_CUDA98_STANDARD_COMPILE_OPTION "") +set(CMAKE_CUDA98_EXTENSION_COMPILE_OPTION "") +set(CMAKE_CUDA11_STANDARD_COMPILE_OPTION "-std=c++11") +set(CMAKE_CUDA11_EXTENSION_COMPILE_OPTION "-std=c++11") + +set(CMAKE_CUDA_STANDARD_DEFAULT 98) |