diff options
author | Brad King <brad.king@kitware.com> | 2014-05-30 19:17:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-30 19:20:24 (GMT) |
commit | b1f4e6206b25b3f70568d9d6ddf4e87eca443396 (patch) | |
tree | 6bb08885f9ac4f717164421a91039123dd9515ad /Help | |
parent | 69a23cb2a28527430041ed3a7c139ce24b4a2395 (diff) | |
download | CMake-b1f4e6206b25b3f70568d9d6ddf4e87eca443396.zip CMake-b1f4e6206b25b3f70568d9d6ddf4e87eca443396.tar.gz CMake-b1f4e6206b25b3f70568d9d6ddf4e87eca443396.tar.bz2 |
Help: Reference cmake_minimum_required from cmake_policy docs
Note in a few places of the cmake_policy() command documentation
that the cmake_minimum_required() command can set policies too.
Inspired-by: Peter Kümmel <syntheticpp@gmx.net>
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/cmake_policy.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/cmake_policy.rst b/Help/command/cmake_policy.rst index 3b0b046..b14a2aa 100644 --- a/Help/command/cmake_policy.rst +++ b/Help/command/cmake_policy.rst @@ -36,6 +36,9 @@ version and tells newer CMake versions to warn about their new policies. The policy version specified must be at least 2.4 or the command will report an error. +Note that the :command:`cmake_minimum_required(VERSION)` +command implicitly calls ``cmake_policy(VERSION)`` too. + Setting Policies Explicitly ''''''''''''''''''''''''''' @@ -79,6 +82,9 @@ entries on the policy stack:: Each ``PUSH`` must have a matching ``POP`` to erase any changes. This is useful to make temporary changes to policy settings. +Calls to the :command:`cmake_minimum_required(VERSION)`, +``cmake_policy(VERSION)``, or ``cmake_policy(SET)`` commands +influence only the current top of the policy stack. Commands created by the :command:`function` and :command:`macro` commands record policy settings when they are created and |