diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2014-11-18 15:34:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-25 19:14:20 (GMT) |
commit | d54617d0068fc5acfa2079d1e8de8f38365564ab (patch) | |
tree | aa52361e45033aa8ca16d7d95a58535a3118c5c9 /Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt | |
parent | bae604d9a80d5d97c676c85848e37783a153ff19 (diff) | |
download | CMake-d54617d0068fc5acfa2079d1e8de8f38365564ab.zip CMake-d54617d0068fc5acfa2079d1e8de8f38365564ab.tar.gz CMake-d54617d0068fc5acfa2079d1e8de8f38365564ab.tar.bz2 |
break: Add policy CMP0055 to check calls strictly
Reject break() without loop scope or any arguments.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt b/Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt new file mode 100644 index 0000000..ad850ac --- /dev/null +++ b/Tests/RunCMake/CMP0055/CMP0055-WARN-Out-of-Scope-stderr.txt @@ -0,0 +1,9 @@ +CMake Warning \(dev\) at CMP0055-WARN-Out-of-Scope.cmake:2 \(break\): + Policy CMP0055 is not set: Strict checking for break\(\) command. Run "cmake + --help-policy CMP0055" for policy details. Use the cmake_policy command to + set the policy and suppress this warning. + + A BREAK command was found outside of a proper FOREACH or WHILE loop scope. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) +This warning is for project developers. Use -Wno-dev to suppress it. |