summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Clang-CUDA.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-10-26 16:08:56 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-11-28 15:02:58 (GMT)
commit3401403f69033446a5dcefd60dd8c375eaa58a44 (patch)
treef16f53fd7b8cdc0eb02a50bcc636cbf6f5a719e7 /Modules/Compiler/Clang-CUDA.cmake
parenta97c41bf8b7748037b08d881b620285b64b1881f (diff)
downloadCMake-3401403f69033446a5dcefd60dd8c375eaa58a44.zip
CMake-3401403f69033446a5dcefd60dd8c375eaa58a44.tar.gz
CMake-3401403f69033446a5dcefd60dd8c375eaa58a44.tar.bz2
Refactoring: Introduce place-holder for dependency target.
These changes are in preparation of compiler generated dependencies support for Makefiles generators * compiler output and dependency target can be different for Makefiles generators * resolve inconsistency naming for dependency file place-holder
Diffstat (limited to 'Modules/Compiler/Clang-CUDA.cmake')
-rw-r--r--Modules/Compiler/Clang-CUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-CUDA.cmake b/Modules/Compiler/Clang-CUDA.cmake
index fd8c2b7..b6155bd 100644
--- a/Modules/Compiler/Clang-CUDA.cmake
+++ b/Modules/Compiler/Clang-CUDA.cmake
@@ -2,7 +2,7 @@ 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>")
+set(CMAKE_DEPFILE_FLAGS_CUDA "-MD -MT <DEP_TARGET> -MF <DEP_FILE>")
# 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.