summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-14 19:38:27 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-17 14:04:01 (GMT)
commit8526756b61014f780348346ba5fdf0604a02d158 (patch)
tree875962cd6dd10ef90e65fc64cad8fdfef8dad5b5 /Source/cmLocalGenerator.cxx
parent013ec595c8d6971c568cff4f8e457d90a6e8be88 (diff)
downloadCMake-8526756b61014f780348346ba5fdf0604a02d158.zip
CMake-8526756b61014f780348346ba5fdf0604a02d158.tar.gz
CMake-8526756b61014f780348346ba5fdf0604a02d158.tar.bz2
cmOutputConverter: Adopt relative path conversion helpers
Move them up from cmLocalGenerator and out of cmStateDirectory.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 3b01b1f..4db9216 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -3678,25 +3678,6 @@ std::string const& cmLocalGenerator::GetCurrentSourceDirectory() const
return this->StateSnapshot.GetDirectory().GetCurrentSource();
}
-std::string cmLocalGenerator::MaybeRelativeTo(
- std::string const& local_path, std::string const& remote_path) const
-{
- return this->StateSnapshot.GetDirectory().ConvertToRelPathIfContained(
- local_path, remote_path);
-}
-
-std::string cmLocalGenerator::MaybeRelativeToTopBinDir(
- std::string const& path) const
-{
- return this->MaybeRelativeTo(this->GetBinaryDirectory(), path);
-}
-
-std::string cmLocalGenerator::MaybeRelativeToCurBinDir(
- std::string const& path) const
-{
- return this->MaybeRelativeTo(this->GetCurrentBinaryDirectory(), path);
-}
-
std::string cmLocalGenerator::GetTargetDirectory(
const cmGeneratorTarget* /*unused*/) const
{