summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-13 14:43:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-13 14:43:57 (GMT)
commitba216592fcd196bbbaaea31a1a19de44f1cd2d04 (patch)
tree6a81260540320dd034fbe395bb7bab5a77a796a3 /Modules/Compiler
parent78fd95fc1def31c3be6a2b188c9e80a0e25a42c0 (diff)
parentf75bea1071859a74f170f45beb7651dcba1ab18a (diff)
downloadCMake-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.cmake2
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