[Cmake-commits] CMake branch, next, updated. v2.8.12.2-7628-g2957ecb

Stephen Kelly steveire at gmail.com
Tue Feb 11 13:00:22 EST 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  2957ecb80b47c375879c9519aaeb9e67ff4b7f65 (commit)
       via  58ca84f5257d961ff42838ed641ecdffb58926b9 (commit)
      from  1ec618612cdd61f4994324c727d812cf133077af (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=2957ecb80b47c375879c9519aaeb9e67ff4b7f65
commit 2957ecb80b47c375879c9519aaeb9e67ff4b7f65
Merge: 1ec6186 58ca84f
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Tue Feb 11 13:00:21 2014 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Feb 11 13:00:21 2014 -0500

    Merge topic 'backward-compatibility' into next
    
    58ca84f5 Fix docs.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=58ca84f5257d961ff42838ed641ecdffb58926b9
commit 58ca84f5257d961ff42838ed641ecdffb58926b9
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Tue Feb 11 18:59:52 2014 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Tue Feb 11 18:59:52 2014 +0100

    Fix docs.

diff --git a/Help/policy/CMP0050.rst b/Help/policy/CMP0050.rst
index afd9c27..2e69c37 100644
--- a/Help/policy/CMP0050.rst
+++ b/Help/policy/CMP0050.rst
@@ -3,17 +3,13 @@ CMP0050
 
 Disallow add_custom_command SOURCE signatures.
 
-CMake 2.8.12 and lower expanded variables which were escaped in CMake code to
-bypass initial expansion by the CMake language:
+CMake 2.8.12 and lower allowed a signature for :command:`add_custom_command`
+which specified an input to a command.  Modern use of CMake associates
+custom commands with their output, rather than their input.
 
-.. code-block:: cmake
-
-  set(sources foo.c)
-  add_executable(foo \${sources})
-
-The OLD behavior for this policy is to expand such variables when processing
-the target sources.  The NEW behavior for this policy is to issue an error
-if such variables need to be expanded.
+The OLD behavior for this policy is to allow the use of
+:command:`add_custom_command` SOURCE signatures.  The NEW behavior for this
+policy is to issue an error if such a signature is used.
 
 This policy was introduced in CMake version 3.0.
 CMake version |release| warns when the policy is not set and uses
diff --git a/Help/release/3.0.rst b/Help/release/3.0.rst
index 6d8b089..5402067 100644
--- a/Help/release/3.0.rst
+++ b/Help/release/3.0.rst
@@ -326,6 +326,9 @@ New Diagnostics
   :command:`add_executable` command learned to reject items which
   require variable expansion.  See policy :policy:`CMP0049`.
 
+* Use of :command:`add_custom_command` legacy SOURCE signatures now
+  results in an error.  See policy :policy:`CMP0050`.
+
 Deprecated and Removed Features
 ===============================
 

-----------------------------------------------------------------------

Summary of changes:
 Help/policy/CMP0050.rst |   16 ++++++----------
 Help/release/3.0.rst    |    3 +++
 2 files changed, 9 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list