summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-19 17:58:46 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-25 14:48:25 (GMT)
commit51116c3ea9d9d69c9c71cf736225f1ef0e927593 (patch)
tree0f0140664d05d823eb6f04e64dab9fbfe8e832f4 /Source
parentef553410e24959dac8413a7f2277d42530fbc0f7 (diff)
downloadCMake-51116c3ea9d9d69c9c71cf736225f1ef0e927593.zip
CMake-51116c3ea9d9d69c9c71cf736225f1ef0e927593.tar.gz
CMake-51116c3ea9d9d69c9c71cf736225f1ef0e927593.tar.bz2
cmLocalNinjaGenerator: Remove unnecessary CollapseFullPath call
`ConvertToIncludeReference` is only called with absolute paths. One branch already assumed this.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index fb6c730..22a1a1a 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -209,9 +209,7 @@ std::string cmLocalNinjaGenerator::ConvertToIncludeReference(
cmOutputConverter::OutputFormat format)
{
if (pathStyle == IncludePathStyle::Absolute) {
- return this->ConvertToOutputFormat(
- cmSystemTools::CollapseFullPath(path, this->GetCurrentBinaryDirectory()),
- format);
+ return this->ConvertToOutputFormat(path, format);
}
return this->ConvertToOutputFormat(this->MaybeRelativeToTopBinDir(path),
format);