diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-01-09 21:40:22 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-01-16 18:56:30 (GMT) |
commit | ec479f101f7113d21efd15257461e337ddc4f8b4 (patch) | |
tree | b56377fac68c62ab79fade02679fc00dbb835240 /Source | |
parent | fd0ba705ce37f54eb88f17e257e5a57e823351bb (diff) | |
download | CMake-ec479f101f7113d21efd15257461e337ddc4f8b4.zip CMake-ec479f101f7113d21efd15257461e337ddc4f8b4.tar.gz CMake-ec479f101f7113d21efd15257461e337ddc4f8b4.tar.bz2 |
cmLocalGenerator: collapse the path after construction
The path may contain `..` or `.` components naïvely, so compute them out
before letting the generator handle them.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6b282ab..4f1f582 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2011,6 +2011,8 @@ bool cmLocalGenerator::GetRealDependency(const std::string& inName, dep = cmStrCat(this->GetCurrentBinaryDirectory(), '/', inName); } + dep = cmSystemTools::CollapseFullPath(dep, this->GetBinaryDirectory()); + return true; } |