mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Merge topic 'test-cmake_policy-unmatched'
378185fb Tests: Add case for unmatched cmake_policy({PUSH,POP})
This commit is contained in:
1
Tests/RunCMake/PolicyScope/NotClosed-result.txt
Normal file
1
Tests/RunCMake/PolicyScope/NotClosed-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
4
Tests/RunCMake/PolicyScope/NotClosed-stderr.txt
Normal file
4
Tests/RunCMake/PolicyScope/NotClosed-stderr.txt
Normal 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\)$
|
||||
1
Tests/RunCMake/PolicyScope/NotClosed.cmake
Normal file
1
Tests/RunCMake/PolicyScope/NotClosed.cmake
Normal file
@@ -0,0 +1 @@
|
||||
cmake_policy(PUSH)
|
||||
1
Tests/RunCMake/PolicyScope/NotOpened-result.txt
Normal file
1
Tests/RunCMake/PolicyScope/NotOpened-result.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
4
Tests/RunCMake/PolicyScope/NotOpened-stderr.txt
Normal file
4
Tests/RunCMake/PolicyScope/NotOpened-stderr.txt
Normal 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\)$
|
||||
1
Tests/RunCMake/PolicyScope/NotOpened.cmake
Normal file
1
Tests/RunCMake/PolicyScope/NotOpened.cmake
Normal file
@@ -0,0 +1 @@
|
||||
cmake_policy(POP)
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user