summaryrefslogtreecommitdiff
path: root/Source/cmPropertyDefinition.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-22 12:49:09 -0400
committerKen Martin <ken.martin@kitware.com>2007-10-22 12:49:09 -0400
commit6cdf03250568c2150094cddfb6542945903b41a1 (patch)
treed2180686ef12105d6855203eded0505775b507ab /Source/cmPropertyDefinition.cxx
parentcfb84d8562646662cfee9622f657e8eacdd49f8c (diff)
downloadcmake-6cdf03250568c2150094cddfb6542945903b41a1.tar.gz
ENH: change to make the documentation class more generic, about halfway there, also provides secitons for Variables now
Diffstat (limited to 'Source/cmPropertyDefinition.cxx')
-rw-r--r--Source/cmPropertyDefinition.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmPropertyDefinition.cxx b/Source/cmPropertyDefinition.cxx
index 3acd1843fa..91dad03c30 100644
--- a/Source/cmPropertyDefinition.cxx
+++ b/Source/cmPropertyDefinition.cxx
@@ -20,10 +20,9 @@
cmDocumentationEntry cmPropertyDefinition::GetDocumentation() const
{
cmDocumentationEntry e;
- e.name = this->Name.c_str();
- e.brief =
- this->ShortDescription.size() ? this->ShortDescription.c_str() : 0;
- e.full = this->FullDescription.size() ? this->FullDescription.c_str() : 0;
+ e.Name = this->Name;
+ e.Brief = this->ShortDescription;
+ e.Full = this->FullDescription;
return e;
}
@@ -31,6 +30,7 @@ void cmPropertyDefinition
::DefineProperty(const char *name, cmProperty::ScopeType scope,
const char *shortDescription,
const char *fullDescription,
+ const char *sec,
bool chain)
{
this->Name = name;
@@ -44,5 +44,9 @@ void cmPropertyDefinition
{
this->FullDescription = fullDescription;
}
+ if (sec)
+ {
+ this->DocumentationSection = sec;
+ }
}