cmake/Source/cmPropertyDefinition.cxx

21 lines
742 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmPropertyDefinition.h"
2016-07-09 11:21:54 +02:00
void cmPropertyDefinition::DefineProperty(const std::string& name,
cmProperty::ScopeType scope,
const char* shortDescription,
const char* fullDescription,
bool chain)
{
this->Name = name;
this->Scope = scope;
this->Chained = chain;
2016-07-09 11:21:54 +02:00
if (shortDescription) {
this->ShortDescription = shortDescription;
2016-07-09 11:21:54 +02:00
}
if (fullDescription) {
this->FullDescription = fullDescription;
2016-07-09 11:21:54 +02:00
}
}