Merge branch 'fix-find_package-version-file-error-stack' into release

This commit is contained in:
Brad King 2015-11-25 09:23:13 -05:00
commit 9ecf8a14fb
19 changed files with 40 additions and 2 deletions

View File

@ -1081,7 +1081,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;
}
@ -1092,7 +1093,8 @@ cmState::Snapshot cmState::Snapshot::GetCallStackParent() const
}
++parentPos;
while(parentPos->SnapshotType == cmState::PolicyScopeType)
while (parentPos->SnapshotType == cmState::PolicyScopeType ||
parentPos->SnapshotType == cmState::VariableScopeType)
{
++parentPos;
}

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,4 @@
^CMake Error at NotClosed.cmake:[0-9]+ \(include\):
cmake_policy PUSH without matching POP
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$

View File

@ -0,0 +1 @@
cmake_policy(PUSH)

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,4 @@
^CMake Error at NotOpened.cmake:[0-9]+ \(cmake_policy\):
cmake_policy POP without matching PUSH
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$

View File

@ -0,0 +1 @@
cmake_policy(POP)

View File

@ -1,4 +1,6 @@
include(RunCMake)
run_cmake(NotClosed)
run_cmake(NotOpened)
run_cmake(parent-dir-generate-time)
run_cmake(dir-in-macro-generate-time)

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,5 @@
^CMake Error at PolicyPop/PolicyPopConfigVersion.cmake:3 \(cmake_policy\):
cmake_policy POP without matching PUSH
Call Stack \(most recent call first\):
PolicyPop.cmake:1 \(find_package\)
CMakeLists.txt:3 \(include\)$

View File

@ -0,0 +1 @@
find_package(PolicyPop 1 CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR}/PolicyPop NO_DEFAULT_PATH)

View File

@ -0,0 +1,3 @@
set(PACKAGE_VERSION 1)
set(PACKAGE_VERSION_COMPATIBLE 1)
cmake_policy(POP)

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,5 @@
^CMake Error at PolicyPush/PolicyPushConfigVersion.cmake:1 \(find_package\):
cmake_policy PUSH without matching POP
Call Stack \(most recent call first\):
PolicyPush.cmake:1 \(find_package\)
CMakeLists.txt:3 \(include\)$

View File

@ -0,0 +1 @@
find_package(PolicyPush 1 CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR}/PolicyPush NO_DEFAULT_PATH)

View File

@ -0,0 +1,3 @@
set(PACKAGE_VERSION 1)
set(PACKAGE_VERSION_COMPATIBLE 1)
cmake_policy(PUSH)

View File

@ -13,4 +13,6 @@ run_cmake(MissingConfigOneName)
run_cmake(MissingConfigRequired)
run_cmake(MissingConfigVersion)
run_cmake(MixedModeOptions)
run_cmake(PolicyPush)
run_cmake(PolicyPop)
run_cmake(SetFoundFALSE)