diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-09-27 18:29:30 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-11-14 16:36:45 (GMT) |
commit | 5dec403103990f766f458ff79987234e3b945787 (patch) | |
tree | 745e9cedebdf9b28e1aef1049ff4ad84d9a5792e /Modules/Compiler | |
parent | 5b20d0abfad057d3d6ae7cbae62f564ddb31dd0f (diff) | |
download | CMake-5dec403103990f766f458ff79987234e3b945787.zip CMake-5dec403103990f766f458ff79987234e3b945787.tar.gz CMake-5dec403103990f766f458ff79987234e3b945787.tar.bz2 |
CUDA: Refactor CMakeCUDAInformation to prepare for separable compilation.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index 6b1ac74..e3ff5e3 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -10,6 +10,11 @@ set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS -shared) set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=) set(CMAKE_CUDA_COMPILE_OPTIONS_VISIBILITY -Xcompiler=-fvisibility=) +set(CMAKE_CUDA_FLAGS_INIT " ") +set(CMAKE_CUDA_FLAGS_DEBUG_INIT " -g") +set(CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG") +set(CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG") +set(CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG") set(CMAKE_CUDA98_STANDARD_COMPILE_OPTION "") set(CMAKE_CUDA98_EXTENSION_COMPILE_OPTION "") |