瀏覽代碼

Merge topic 'cuda_clang_simulate' into release-3.18

0f88b7a592 CUDA: Fix Clang depfile flags when simulating MSVC

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4863
Brad King 5 年之前
父節點
當前提交
6f8a31849c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Modules/Compiler/Clang-CUDA.cmake

+ 3 - 0
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")