summaryrefslogtreecommitdiff
path: root/Source/cmDependsCompiler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-02 10:01:09 -0400
committerBrad King <brad.king@kitware.com>2021-07-02 10:01:09 -0400
commit6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c (patch)
tree3eb82ae438145021d965a1363eef7ee6956afb64 /Source/cmDependsCompiler.cxx
parent6372e74ed4808f9cb6f2385cc4d8325e22a9fdb6 (diff)
parent6a6efdcaedc6f87fbafd40af5305cabdced450c4 (diff)
downloadcmake-6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c.tar.gz
Merge branch 'backport-3.20-makefile-normalize-depfile'
Diffstat (limited to 'Source/cmDependsCompiler.cxx')
-rw-r--r--Source/cmDependsCompiler.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmDependsCompiler.cxx b/Source/cmDependsCompiler.cxx
index 800725fd53..bf599ffaf0 100644
--- a/Source/cmDependsCompiler.cxx
+++ b/Source/cmDependsCompiler.cxx
@@ -131,7 +131,9 @@ bool cmDependsCompiler::CheckDependencies(
depends.emplace_back(std::move(line));
}
} else if (format == "gcc"_s) {
- auto deps = cmReadGccDepfile(depFile.c_str());
+ auto deps = cmReadGccDepfile(
+ depFile.c_str(), this->LocalGenerator->GetCurrentBinaryDirectory(),
+ GccDepfilePrependPaths::Deps);
if (!deps) {
continue;
}