summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-23 14:40:49 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-23 14:40:49 (GMT)
commit923b51ece003a658b4876743c3d9b6567c43e7e3 (patch)
tree0009d8c94dba93b63d05b3af2b4d38cbacbb111a /Source/cmMakefile.cxx
parent712758dfc3a3f6f82f90d5808eec2eed433beb42 (diff)
downloadCMake-923b51ece003a658b4876743c3d9b6567c43e7e3.zip
CMake-923b51ece003a658b4876743c3d9b6567c43e7e3.tar.gz
CMake-923b51ece003a658b4876743c3d9b6567c43e7e3.tar.bz2
COMP: fix for when STRICT is defined, and fix for props that have no docs
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index f2cafa6..c9e0c78 100644
--- a/Source/cmMakefile.cxx
+++ b/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;