diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-10-26 16:08:56 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-28 15:02:58 (GMT) |
commit | 3401403f69033446a5dcefd60dd8c375eaa58a44 (patch) | |
tree | f16f53fd7b8cdc0eb02a50bcc636cbf6f5a719e7 /Modules/Compiler/GNU.cmake | |
parent | a97c41bf8b7748037b08d881b620285b64b1881f (diff) | |
download | CMake-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/GNU.cmake')
-rw-r--r-- | Modules/Compiler/GNU.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake index 668a6a9..dc06d22 100644 --- a/Modules/Compiler/GNU.cmake +++ b/Modules/Compiler/GNU.cmake @@ -49,7 +49,7 @@ macro(__compiler_gnu lang) # distcc does not transform -o to -MT when invoking the preprocessor # internally, as it ought to. Work around this bug by setting -MT here # even though it isn't strictly necessary. - set(CMAKE_DEPFILE_FLAGS_${lang} "-MD -MT <OBJECT> -MF <DEPFILE>") + set(CMAKE_DEPFILE_FLAGS_${lang} "-MD -MT <DEP_TARGET> -MF <DEP_FILE>") endif() # Initial configuration flags. |