summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsCompiler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-02 14:01:09 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-02 14:01:09 (GMT)
commit6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c (patch)
tree3eb82ae438145021d965a1363eef7ee6956afb64 /Source/cmDependsCompiler.cxx
parent6372e74ed4808f9cb6f2385cc4d8325e22a9fdb6 (diff)
parent6a6efdcaedc6f87fbafd40af5305cabdced450c4 (diff)
downloadCMake-6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c.zip
CMake-6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c.tar.gz
CMake-6bc6ffb9a9b32e07d7cdf8532ba0f49c8153d15c.tar.bz2
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 800725f..bf599ff 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;
}