diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-22 16:49:09 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-22 16:49:09 (GMT) |
commit | 6cdf03250568c2150094cddfb6542945903b41a1 (patch) | |
tree | d2180686ef12105d6855203eded0505775b507ab /Source/cmPropertyDefinition.cxx | |
parent | cfb84d8562646662cfee9622f657e8eacdd49f8c (diff) | |
download | CMake-6cdf03250568c2150094cddfb6542945903b41a1.zip CMake-6cdf03250568c2150094cddfb6542945903b41a1.tar.gz CMake-6cdf03250568c2150094cddfb6542945903b41a1.tar.bz2 |
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.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmPropertyDefinition.cxx b/Source/cmPropertyDefinition.cxx index 3acd184..91dad03 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; + } } |