diff options
author | Brad King <brad.king@kitware.com> | 2020-06-08 11:55:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-08 11:55:51 (GMT) |
commit | 6f8a31849c7287611e01bf67a7ca5a3f5c14dc4f (patch) | |
tree | cd42d88b7e219079e26114a7642a90dbd0af48a5 | |
parent | 83256834203055d97f710a1cab3327100833b6ab (diff) | |
parent | 0f88b7a5924bbb37239ebb8399096cf9ebb6b7f0 (diff) | |
download | CMake-6f8a31849c7287611e01bf67a7ca5a3f5c14dc4f.zip CMake-6f8a31849c7287611e01bf67a7ca5a3f5c14dc4f.tar.gz CMake-6f8a31849c7287611e01bf67a7ca5a3f5c14dc4f.tar.bz2 |
Merge topic 'cuda_clang_simulate' into release-3.18
0f88b7a592 CUDA: Fix Clang depfile flags when simulating MSVC
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4863
-rw-r--r-- | Modules/Compiler/Clang-CUDA.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang-CUDA.cmake b/Modules/Compiler/Clang-CUDA.cmake index a970985..336827b 100644 --- a/Modules/Compiler/Clang-CUDA.cmake +++ b/Modules/Compiler/Clang-CUDA.cmake @@ -1,6 +1,9 @@ include(Compiler/Clang) __compiler_clang(CUDA) +# Set explicitly, because __compiler_clang() doesn't set this if we're simulating MSVC. +set(CMAKE_DEPFILE_FLAGS_CUDA "-MD -MT <OBJECT> -MF <DEPFILE>") + # C++03 isn't supported for CXX, but is for CUDA, so we need to set these manually. # Do this before __compiler_clang_cxx_standards() since that adds the feature. set(CMAKE_CUDA03_STANDARD_COMPILE_OPTION "-std=c++03") |