mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
Merge topic 'fix-find_package-version-file-error-stack'
62126b67Merge branch 'test-cmake_policy-unmatched' into fix-find_package-version-file-error-stack2e28c619cmState: Skip variable scope snapshots to avoid call stack duplicatesb219ff94Tests: Add case for package version file unmatched policy scope
This commit is contained in:
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user