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  8ebf8dbfbf9774122701a959fc5fb1921cca1c83 (commit)
       via  8e15f1aea9510fc9d9009a8a7c5a00550da64fa6 (commit)
      from  baa1395fc9195786cd14872366ba92fa85e67478 (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=8ebf8dbfbf9774122701a959fc5fb1921cca1c83
commit 8ebf8dbfbf9774122701a959fc5fb1921cca1c83
Merge: baa1395 8e15f1a
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Fri May 24 09:03:26 2013 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Fri May 24 09:03:26 2013 -0400

    Merge topic 'genex-generate-file' into next
    
    8e15f1a Add some docs for file(GENERATE).


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8e15f1aea9510fc9d9009a8a7c5a00550da64fa6
commit 8e15f1aea9510fc9d9009a8a7c5a00550da64fa6
Author:     Stephen Kelly <steve...@gmail.com>
AuthorDate: Thu May 23 17:16:58 2013 +0200
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Fri May 24 09:00:55 2013 -0400

    Add some docs for file(GENERATE).

diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index a50b738..586fee2 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -88,6 +88,9 @@ public:
       "  file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]\n"
       "       [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])\n"
       "  file(TIMESTAMP filename variable [<format string>] [UTC])\n"
+      "  file(GENERATE OUTPUT output_file\n"
+      "       <INPUT input_file|CONTENT input_content>\n"
+      "       CONDITION expression)\n"
       "WRITE will write a message into a file called 'filename'. It "
       "overwrites the file if it already exists, and creates the file "
       "if it does not exist. (If the file is a build input, use "
@@ -231,6 +234,15 @@ public:
       "it prints status messages, and NO_SOURCE_PERMISSIONS is default.  "
       "Installation scripts generated by the install() command use this "
       "signature (with some undocumented options for internal use)."
+      "\n"
+      "GENERATE will write an <output_file> with content from an "
+      "<input_file>, or from <input_content>.  The output is generated "
+      "conditionally based on the content of the <condition>.  The file is "
+      "written at CMake generate-time and the input may contain generator "
+      "expressions.  The <condition>, <output_file> and <input_file> may "
+      "also contain generator expressions.  The <condition> must evaluate to "
+      "either '0' or '1'.  The <output_file> must evaluate to a unique name "
+      "among all configurations and among all invocations of file(GENERATE)."
       // Undocumented INSTALL options:
       //  - RENAME <name>
       //  - OPTIONAL

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

Summary of changes:
 Source/cmFileCommand.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to