[Cmake-commits] CMake branch, next, updated. v2.8.8-3442-gba91a13

Brad King brad.king at kitware.com
Wed Jul 11 10:44:29 EDT 2012


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  ba91a131ae1ab771f66e8d314eefad0b49ee27b1 (commit)
       via  674c56c3fcf63732672b778781dc57f7bc3c8d02 (commit)
      from  18b72d7ca29847279684bc29a5ab6d4625a1356e (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=ba91a131ae1ab771f66e8d314eefad0b49ee27b1
commit ba91a131ae1ab771f66e8d314eefad0b49ee27b1
Merge: 18b72d7 674c56c
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Wed Jul 11 10:44:27 2012 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Jul 11 10:44:27 2012 -0400

    Merge topic 'doc-if-inside-macro' into next
    
    674c56c if: Document that macro arguments are not variables (#13393)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=674c56c3fcf63732672b778781dc57f7bc3c8d02
commit 674c56c3fcf63732672b778781dc57f7bc3c8d02
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Wed Jul 11 10:40:04 2012 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Wed Jul 11 10:40:04 2012 -0400

    if: Document that macro arguments are not variables (#13393)
    
    A common mistake is to write
    
     macro(foo arg)
       if(arg)
       endif()
     endmacro()
    
    and expect if() to treat "arg" as a variable.  The documentation of the
    macro() command already states that arguments are not variables, but
    users writing the if() command may not look at the macro() docs.
    Add a note to the if() documentation.

diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 83ea8a4..94e4d99 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -123,6 +123,7 @@ public:
       "  if(<variable>)\n"
       "True if the variable is defined to a value that is not a false "
       "constant.  False otherwise.  "
+      "(Note macro arguments are not variables.)"
       "\n"
       "  if(NOT <expression>)\n"
       "True if the expression is not true."

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

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


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list