summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-25 14:21:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-11-25 14:21:49 (GMT)
commit99533c8e345c627f5f5a98be5cda7b7624756fb9 (patch)
tree816552f1d75fba5e698b59e39543da2f760561db /Source
parent2b24fbf48ce00777738c306354c8c7ec2cb3237b (diff)
parent62126b67e0048800a833d3c4ea86d2307f1a4a06 (diff)
downloadCMake-99533c8e345c627f5f5a98be5cda7b7624756fb9.zip
CMake-99533c8e345c627f5f5a98be5cda7b7624756fb9.tar.gz
CMake-99533c8e345c627f5f5a98be5cda7b7624756fb9.tar.bz2
Merge topic 'fix-find_package-version-file-error-stack'
62126b67 Merge branch 'test-cmake_policy-unmatched' into fix-find_package-version-file-error-stack 2e28c619 cmState: Skip variable scope snapshots to avoid call stack duplicates b219ff94 Tests: Add case for package version file unmatched policy scope
Diffstat (limited to 'Source')
-rw-r--r--Source/cmState.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index c491c7d..4362157 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -1156,7 +1156,8 @@ cmState::Snapshot cmState::Snapshot::GetCallStackParent() const
Snapshot snapshot;
PositionType parentPos = this->Position;
- while(parentPos->SnapshotType == cmState::PolicyScopeType)
+ while (parentPos->SnapshotType == cmState::PolicyScopeType ||
+ parentPos->SnapshotType == cmState::VariableScopeType)
{
++parentPos;
}
@@ -1167,7 +1168,8 @@ cmState::Snapshot cmState::Snapshot::GetCallStackParent() const
}
++parentPos;
- while(parentPos->SnapshotType == cmState::PolicyScopeType)
+ while (parentPos->SnapshotType == cmState::PolicyScopeType ||
+ parentPos->SnapshotType == cmState::VariableScopeType)
{
++parentPos;
}