[Cmake-commits] [cmake-commits] martink committed cmIfCommand.h 1.55 1.56 cmPolicies.cxx 1.36 1.37

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Jun 12 13:25:52 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv27464/Source

Modified Files:
	cmIfCommand.h cmPolicies.cxx 
Log Message:
ENH: clean up some help text


Index: cmPolicies.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmPolicies.cxx,v
retrieving revision 1.36
retrieving revision 1.37
diff -C 2 -d -r1.36 -r1.37
*** cmPolicies.cxx	12 Jun 2009 14:07:05 -0000	1.36
--- cmPolicies.cxx	12 Jun 2009 17:25:50 -0000	1.37
***************
*** 361,368 ****
      "In CMake versions prior to 2.6.5 the only boolean constants were 0 and 1. "
      "Other boolean constants such as true, false, yes, no, "
!     "on, off, y, n, notfound, ignore were recognized in some cases but not all. "
!     "In later versions of cmake these values are treated as boolean constants "
!     "more consistently and should not be used as variable names. "
!     "Please do not use them as variable names.",
      "The OLD behavior for this policy is to allow variables to have names such as "
      "true and to dereference them. "
--- 361,368 ----
      "In CMake versions prior to 2.6.5 the only boolean constants were 0 and 1. "
      "Other boolean constants such as true, false, yes, no, "
!     "on, off, y, n, notfound, ignore (all case insensitive) were recognized "
!     "in some cases but not all. In later versions of cmake these values are "
!     "treated as boolean constants more consistently and should not be used "
!     "as variable names. Please do not use them as variable names.",
      "The OLD behavior for this policy is to allow variables to have names such as "
      "true and to dereference them. "

Index: cmIfCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -C 2 -d -r1.55 -r1.56
*** cmIfCommand.h	12 Jun 2009 14:07:05 -0000	1.55
--- cmIfCommand.h	12 Jun 2009 17:25:50 -0000	1.56
***************
*** 195,200 ****
  
        "The if statement was written fairly early in CMake's history "
!       "and it has some convenience features that may be confusing for "
!       "new users. The if statement reduces operations until there is "
        "a single remaining value, at that point if the case "
        "insensitive value is: ON, 1, YES, TRUE, Y it returns true, if "
--- 195,200 ----
  
        "The if statement was written fairly early in CMake's history "
!       "and it has some convenience features that are worth covering. "
!       "The if statement reduces operations until there is "
        "a single remaining value, at that point if the case "
        "insensitive value is: ON, 1, YES, TRUE, Y it returns true, if "
***************
*** 202,207 ****
        "will return false. \n"
  
!       "This is fairly reasonable. The convenience feature that makes "
!       "it more confusing is how CMake handles values that do not "
        "match the true or false list. Those values are treated as "
        "variables and are dereferenced even though they do not have "
--- 202,207 ----
        "will return false. \n"
  
!       "This is fairly reasonable. The convenience feature that sometimes "
!       "throws new authors is how CMake handles values that do not "
        "match the true or false list. Those values are treated as "
        "variables and are dereferenced even though they do not have "



More information about the Cmake-commits mailing list