[Cmake-commits] [cmake-commits] king committed cmDefinePropertyCommand.cxx 1.4 1.5 cmDefinePropertyCommand.h 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jun 15 16:12:30 EDT 2009


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

Modified Files:
	cmDefinePropertyCommand.cxx cmDefinePropertyCommand.h 
Log Message:
ENH: Simplify docs args for define_property

This teaches the define_property command signature to accept multiple
arguments after the BRIEF_DOCS and FULL_DOCS keywords.  We append the
arguments together, making specification of long documentation easier.


Index: cmDefinePropertyCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDefinePropertyCommand.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** cmDefinePropertyCommand.h	14 Feb 2008 18:36:23 -0000	1.6
--- cmDefinePropertyCommand.h	15 Jun 2009 20:12:27 -0000	1.7
***************
*** 57,62 ****
          "                   TEST | VARIABLE | CACHED_VARIABLE>\n"
          "                   PROPERTY <name> [INHERITED]\n"
!         "                   BRIEF_DOCS <brief-doc>\n"
!         "                   FULL_DOCS <full-doc>)\n"
          "Define one property in a scope for use with the "
          "set_property and get_property commands.  "
--- 57,62 ----
          "                   TEST | VARIABLE | CACHED_VARIABLE>\n"
          "                   PROPERTY <name> [INHERITED]\n"
!         "                   BRIEF_DOCS <brief-doc> [docs...]\n"
!         "                   FULL_DOCS <full-doc> [docs...])\n"
          "Define one property in a scope for use with the "
          "set_property and get_property commands.  "

Index: cmDefinePropertyCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDefinePropertyCommand.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** cmDefinePropertyCommand.cxx	14 Feb 2008 18:36:23 -0000	1.4
--- cmDefinePropertyCommand.cxx	15 Jun 2009 20:12:25 -0000	1.5
***************
*** 99,109 ****
      else if(doing == DoingBrief)
        {
!       doing = DoingNone;
!       this->BriefDocs = args[i];
        }
      else if(doing == DoingFull)
        {
!       doing = DoingNone;
!       this->FullDocs = args[i];
        }
      else
--- 99,107 ----
      else if(doing == DoingBrief)
        {
!       this->BriefDocs += args[i];
        }
      else if(doing == DoingFull)
        {
!       this->FullDocs += args[i];
        }
      else



More information about the Cmake-commits mailing list