[Cmake-commits] CMake branch, next, updated. v2.8.12.1-6297-g7e73ba7
Stephen Kelly
steveire at gmail.com
Fri Dec 20 06:33:38 EST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 7e73ba7211dfb2e88a954b03d1e08c4f2e213fc4 (commit)
via 8f849b90711e0912fa81018058a53eb193dd678c (commit)
from 13732b7a1a04ecf08f1fb5efbe0bf38c0cae080e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7e73ba7211dfb2e88a954b03d1e08c4f2e213fc4
commit 7e73ba7211dfb2e88a954b03d1e08c4f2e213fc4
Merge: 13732b7 8f849b9
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Dec 20 06:33:36 2013 -0500
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Dec 20 06:33:36 2013 -0500
Merge topic 'extend-policies-manual' into next
8f849b9 Help: Mention if(POLICY) and NO_POLICY_SCOPE in policies manual.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8f849b90711e0912fa81018058a53eb193dd678c
commit 8f849b90711e0912fa81018058a53eb193dd678c
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Dec 20 12:19:11 2013 +0100
Commit: Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Dec 20 12:32:43 2013 +0100
Help: Mention if(POLICY) and NO_POLICY_SCOPE in policies manual.
diff --git a/Help/manual/cmake-policies.7.rst b/Help/manual/cmake-policies.7.rst
index 5e94f89..9e26392 100644
--- a/Help/manual/cmake-policies.7.rst
+++ b/Help/manual/cmake-policies.7.rst
@@ -21,7 +21,21 @@ for a policy, also avoiding the warning.
The :command:`cmake_minimum_required` command does more than report an
error if a too-old version of CMake is used to build a project. It
also sets all policies introduced in that CMake version or earlier to
-NEW behavior.
+NEW behavior. To manage policies without increasing the minimum required
+CMake version, the :command:`if(POLICY)` command may be used::
+
+ if(POLICY CMP0990)
+ cmake_policy(SET CMP0990 NEW)
+ endif()
+
+This has the effect of using the NEW behavior with newer CMake releases which
+users may be using and not issuing a compatibility warning.
+
+The setting of a policy is confined in some cases to not propagate to the
+parent scope. For example, if the files read by the :command:`include` command
+or the :command:`find_package` command contain a use of :command:`cmake_policy`,
+that policy setting will not affect the caller by default. Both commands accept
+an optional ``NO_POLICY_SCOPE`` keyword to control this behavior.
The :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` variable may also be used
to determine whether to report an error on use of deprecated macros or
-----------------------------------------------------------------------
Summary of changes:
Help/manual/cmake-policies.7.rst | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list