[Cmake-commits] CMake branch, next, updated. v3.0.1-5203-gc4ee3ce
Brad King
brad.king at kitware.com
Mon Sep 8 12:40:55 EDT 2014
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 c4ee3ce9e88b3ae8a422787d18ce0b1cb499a014 (commit)
via dbb8d6cf8d7b1a3538d7c2bc151a409d080bcda3 (commit)
via 2f55b956a2e7821d33766301f14b8e484934ec44 (commit)
from 0dc66cfafe6f5bc1e6a0e0622cd784a28573b304 (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=c4ee3ce9e88b3ae8a422787d18ce0b1cb499a014
commit c4ee3ce9e88b3ae8a422787d18ce0b1cb499a014
Merge: 0dc66cf dbb8d6c
Author: Brad King <brad.king at kitware.com>
AuthorDate: Mon Sep 8 12:40:54 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Sep 8 12:40:54 2014 -0400
Merge topic 'if-sanity' into next
dbb8d6cf Help: Add notes for topic 'if-sanity'
2f55b956 Help: Revise CMP0054 documentation formatting and links
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dbb8d6cf8d7b1a3538d7c2bc151a409d080bcda3
commit dbb8d6cf8d7b1a3538d7c2bc151a409d080bcda3
Author: Brad King <brad.king at kitware.com>
AuthorDate: Mon Sep 8 12:41:48 2014 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Mon Sep 8 12:42:10 2014 -0400
Help: Add notes for topic 'if-sanity'
diff --git a/Help/release/dev/if-sanity.rst b/Help/release/dev/if-sanity.rst
new file mode 100644
index 0000000..6645bc4
--- /dev/null
+++ b/Help/release/dev/if-sanity.rst
@@ -0,0 +1,6 @@
+if-sanity
+---------
+
+* The :command:`if` command no longer automatically dereferences
+ variables named in quoted or bracket arguments. See policy
+ :policy:`CMP0054`.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f55b956a2e7821d33766301f14b8e484934ec44
commit 2f55b956a2e7821d33766301f14b8e484934ec44
Author: Brad King <brad.king at kitware.com>
AuthorDate: Mon Sep 8 12:41:13 2014 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Mon Sep 8 12:42:09 2014 -0400
Help: Revise CMP0054 documentation formatting and links
diff --git a/Help/command/if.rst b/Help/command/if.rst
index 541b995..79e5d21 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -201,6 +201,7 @@ above-documented signature accepts ``<variable|string>``:
such, otherwise they are assumed to be variables and are dereferenced.
To prevent ambiguity, potential variable or keyword names can be
-quoted or bracketed. A quoted or bracketed variable or keyword will be
-interpreted as a string and not dereferenced or interpreted.
-See CMake Policy :policy:`CMP0054`.
+specified in a :ref:`Quoted Argument` or a :ref:`Bracket Argument`.
+A quoted or bracketed variable or keyword will be interpreted as a
+string and not dereferenced or interpreted.
+See policy :policy:`CMP0054`.
diff --git a/Help/policy/CMP0054.rst b/Help/policy/CMP0054.rst
index 778eb83..dffee5e 100644
--- a/Help/policy/CMP0054.rst
+++ b/Help/policy/CMP0054.rst
@@ -1,11 +1,11 @@
CMP0054
-------
-Only interpret if() arguments as variables or keywords when unquoted.
+Only interpret :command:`if` arguments as variables or keywords when unquoted.
-CMake 3.1 no longer dereferences variables or interprets keywords in if()
-arguments when they are quoted :ref:`Quoted Argument` or
-bracketed :ref:`Bracket Argument`.
+CMake 3.1 and above no longer dereference variables or interpret keywords
+in an :command:`if` command argument when it is a :ref:`Quoted Argument`
+or a :ref:`Bracket Argument`.
The ``OLD`` behavior for this policy is to dereference variables and
interpret keywords even if they are quoted or bracketed.
-----------------------------------------------------------------------
Summary of changes:
Help/command/if.rst | 7 ++++---
Help/policy/CMP0054.rst | 8 ++++----
Help/release/dev/if-sanity.rst | 6 ++++++
3 files changed, 14 insertions(+), 7 deletions(-)
create mode 100644 Help/release/dev/if-sanity.rst
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list