diff options
author | Brad King <brad.king@kitware.com> | 2020-03-13 14:43:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-13 14:43:57 (GMT) |
commit | ba216592fcd196bbbaaea31a1a19de44f1cd2d04 (patch) | |
tree | 6a81260540320dd034fbe395bb7bab5a77a796a3 /Modules/Compiler | |
parent | 78fd95fc1def31c3be6a2b188c9e80a0e25a42c0 (diff) | |
parent | f75bea1071859a74f170f45beb7651dcba1ab18a (diff) | |
download | CMake-ba216592fcd196bbbaaea31a1a19de44f1cd2d04.zip CMake-ba216592fcd196bbbaaea31a1a19de44f1cd2d04.tar.gz CMake-ba216592fcd196bbbaaea31a1a19de44f1cd2d04.tar.bz2 |
Merge topic 'cuda_language'
f75bea1071 CUDA: Abstract language flag to compiler modules
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4464
Diffstat (limited to 'Modules/Compiler')
-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 1f4d54d..2a2564e 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -4,6 +4,8 @@ set(CMAKE_CUDA_COMPILER_HAS_DEVICE_LINK_PHASE True) set(CMAKE_CUDA_VERBOSE_FLAG "-v") set(CMAKE_CUDA_VERBOSE_COMPILE_FLAG "-Xcompiler=-v") +set(_CMAKE_COMPILE_AS_CUDA_FLAG "-x cu") + if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 10.2.89) # The -forward-unknown-to-host-compiler flag was only # added to nvcc in 10.2 so before that we had no good |