Browse Source

COMP: fix for when STRICT is defined, and fix for props that have no docs

pull/1/head
Ken Martin 18 years ago
parent
commit
923b51ece0
  1. 6
      Source/cmMakefile.cxx
  2. 5
      Source/cmPropertyDefinitionMap.cxx

6
Source/cmMakefile.cxx

@ -1217,7 +1217,8 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
}
#ifdef CMAKE_STRICT
if (!this->CMakeInstance->IsPropertyDefined(name,cmProperty::VARIABLE))
if (this->GetCMakeInstance() &&
!this->GetCMakeInstance()->IsPropertyDefined(name,cmProperty::VARIABLE))
{
std::string msg = "Variable ";
msg += name;
@ -1681,7 +1682,8 @@ bool cmMakefile::IsDefinitionSet(const char* name) const
const char* cmMakefile::GetDefinition(const char* name) const
{
#ifdef CMAKE_STRICT
if (!this->CMakeInstance->IsPropertyDefined(name,cmProperty::VARIABLE))
if (this->GetCMakeInstance() &&
!this->GetCMakeInstance()->IsPropertyDefined(name,cmProperty::VARIABLE))
{
std::string msg = "Variable ";
msg += name;

5
Source/cmPropertyDefinitionMap.cxx

@ -87,7 +87,10 @@ void cmPropertyDefinitionMap
cmSystemTools::UpperCase(secName).c_str());
}
cmDocumentationEntry e = j->second.GetDocumentation();
v[secName]->Append(e);
if (e.Brief.size() || e.Full.size())
{
v[secName]->Append(e);
}
}
}

Loading…
Cancel
Save