diff options
author | Brad King <brad.king@kitware.com> | 2014-11-26 18:50:47 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-11-26 18:50:47 (GMT) |
commit | 82582c96bd86969ee5e1cc6f7bc4e5b12e1717e1 (patch) | |
tree | 3b47d49ccd16f09b7281f16600d553ea8b44b630 /Help | |
parent | 106c769f1d46a2410ff62c3dd4cd02cd1da7fd37 (diff) | |
parent | d54617d0068fc5acfa2079d1e8de8f38365564ab (diff) | |
download | CMake-82582c96bd86969ee5e1cc6f7bc4e5b12e1717e1.zip CMake-82582c96bd86969ee5e1cc6f7bc4e5b12e1717e1.tar.gz CMake-82582c96bd86969ee5e1cc6f7bc4e5b12e1717e1.tar.bz2 |
Merge topic 'break-command-strictness'
d54617d0 break: Add policy CMP0055 to check calls strictly
bae604d9 Track nested loop levels in CMake language with a stack of counters
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-policies.7.rst | 1 | ||||
-rw-r--r-- | Help/policy/CMP0055.rst | 17 | ||||
-rw-r--r-- | Help/release/dev/break-command-strictness.rst | 6 |
3 files changed, 24 insertions, 0 deletions
diff --git a/Help/manual/cmake-policies.7.rst b/Help/manual/cmake-policies.7.rst index 7074bd5..742fd63 100644 --- a/Help/manual/cmake-policies.7.rst +++ b/Help/manual/cmake-policies.7.rst @@ -112,3 +112,4 @@ All Policies /policy/CMP0052 /policy/CMP0053 /policy/CMP0054 + /policy/CMP0055 diff --git a/Help/policy/CMP0055.rst b/Help/policy/CMP0055.rst new file mode 100644 index 0000000..fe7ab6f --- /dev/null +++ b/Help/policy/CMP0055.rst @@ -0,0 +1,17 @@ +CMP0055 +------- + +Strict checking for the :command:`break` command. + +CMake 3.1 and lower allowed calls to the :command:`break` command +outside of a loop context and also ignored any given arguments. +This was undefined behavior. + +The OLD behavior for this policy is to allow :command:`break` to be placed +outside of loop contexts and ignores any arguments. The NEW behavior for this +policy is to issue an error if a misplaced break or any arguments are found. + +This policy was introduced in CMake version 3.2. +CMake version |release| warns when the policy is not set and uses +OLD behavior. Use the cmake_policy command to set it to OLD or +NEW explicitly. diff --git a/Help/release/dev/break-command-strictness.rst b/Help/release/dev/break-command-strictness.rst new file mode 100644 index 0000000..0723774 --- /dev/null +++ b/Help/release/dev/break-command-strictness.rst @@ -0,0 +1,6 @@ +break-command-strictness +------------------------ + +* The :command:`break` command now rejects calls outside of a loop + context or that pass arguments to the command. + See policy :policy:`CMP0055`. |