diff options
author | Brad King <brad.king@kitware.com> | 2020-03-18 18:22:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-24 14:10:06 (GMT) |
commit | 25f48761faad8308f23690a51030a49d05007391 (patch) | |
tree | 1f3ece02d09b79e7a6bab7b0fb4593323e5e66bd /Source/cmLocalNinjaGenerator.cxx | |
parent | 12b39aef7599a3ab6b1c1b9537d427839a9346b3 (diff) | |
download | CMake-25f48761faad8308f23690a51030a49d05007391.zip CMake-25f48761faad8308f23690a51030a49d05007391.tar.gz CMake-25f48761faad8308f23690a51030a49d05007391.tar.bz2 |
Simplify absolute path conversions using CollapseFullPath full signature
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmLocalNinjaGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index be1dd0d..1568397 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -144,8 +144,9 @@ std::string cmLocalNinjaGenerator::ConvertToIncludeReference( bool forceFullPaths) { if (forceFullPaths) { - return this->ConvertToOutputFormat(cmSystemTools::CollapseFullPath(path), - format); + return this->ConvertToOutputFormat( + cmSystemTools::CollapseFullPath(path, this->GetCurrentBinaryDirectory()), + format); } return this->ConvertToOutputFormat( this->MaybeConvertToRelativePath(this->GetBinaryDirectory(), path), |