summaryrefslogtreecommitdiff
path: root/Source/cmStateDirectory.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-14 15:27:56 -0400
committerBrad King <brad.king@kitware.com>2021-05-17 10:02:16 -0400
commitb4f07bfe5ad822b6e07372ceb06485aafc68a774 (patch)
tree19205f0b40a1010020be6e2129574ce7958fb04b /Source/cmStateDirectory.cxx
parentd8d0f3ec377380af07b3185e82a4d853f556e4f9 (diff)
downloadcmake-b4f07bfe5ad822b6e07372ceb06485aafc68a774.tar.gz
cmStateDirectory: Fix comment on relative path top directory selection
Fix the comment added by commit f6d4fa63f8 (cmStateDirectory: Comment relative path top directory selection approach, 2021-05-13) to describe the actual behavior.
Diffstat (limited to 'Source/cmStateDirectory.cxx')
-rw-r--r--Source/cmStateDirectory.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmStateDirectory.cxx b/Source/cmStateDirectory.cxx
index a0bfd2820f..804b776038 100644
--- a/Source/cmStateDirectory.cxx
+++ b/Source/cmStateDirectory.cxx
@@ -45,8 +45,7 @@ void cmStateDirectory::ComputeRelativePathTopSource()
std::string result = snapshots.front().GetDirectory().GetCurrentSource();
// Walk up the buildsystem directory tree to find the highest source
- // directory that contains the current source directory and the
- // intermediate ancestors.
+ // directory that contains the current source directory.
for (cmStateSnapshot const& snp : cmMakeRange(snapshots).advance(1)) {
std::string currentSource = snp.GetDirectory().GetCurrentSource();
if (cmSystemTools::IsSubDirectory(result, currentSource)) {
@@ -73,8 +72,7 @@ void cmStateDirectory::ComputeRelativePathTopBinary()
std::string result = snapshots.front().GetDirectory().GetCurrentBinary();
// Walk up the buildsystem directory tree to find the highest binary
- // directory that contains the current binary directory and the
- // intermediate ancestors.
+ // directory that contains the current binary directory.
for (cmStateSnapshot const& snp : cmMakeRange(snapshots).advance(1)) {
std::string currentBinary = snp.GetDirectory().GetCurrentBinary();
if (cmSystemTools::IsSubDirectory(result, currentBinary)) {