diff options
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; + } } |