diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-11-06 19:16:00 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-11-06 19:16:00 (GMT) |
commit | 433a9149108c88d4fb715331f97ee079fa16fe10 (patch) | |
tree | 752b46257e94a03c6d65bb5ac329e83729ff9871 /Source/cmMakefile.cxx | |
parent | 8eae7fddf29dc9531c2c7ac87dcf2dbf4a4c8dec (diff) | |
download | CMake-433a9149108c88d4fb715331f97ee079fa16fe10.zip CMake-433a9149108c88d4fb715331f97ee079fa16fe10.tar.gz CMake-433a9149108c88d4fb715331f97ee079fa16fe10.tar.bz2 |
ENH: different way of testing properties
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c9e0c78..418b70e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1217,13 +1217,10 @@ void cmMakefile::AddDefinition(const char* name, const char* value) } #ifdef CMAKE_STRICT - if (this->GetCMakeInstance() && - !this->GetCMakeInstance()->IsPropertyDefined(name,cmProperty::VARIABLE)) + if (this->GetCMakeInstance()) { - std::string msg = "Variable "; - msg += name; - msg += " set yet not defined!"; - cmSystemTools::Error(msg.c_str()); + this->GetCMakeInstance()-> + RecordPropertyAccess(name,cmProperty::VARIABLE); } #endif @@ -1682,13 +1679,10 @@ bool cmMakefile::IsDefinitionSet(const char* name) const const char* cmMakefile::GetDefinition(const char* name) const { #ifdef CMAKE_STRICT - if (this->GetCMakeInstance() && - !this->GetCMakeInstance()->IsPropertyDefined(name,cmProperty::VARIABLE)) + if (this->GetCMakeInstance()) { - std::string msg = "Variable "; - msg += name; - msg += " queried yet undefined!"; - cmSystemTools::Error(msg.c_str()); + this->GetCMakeInstance()-> + RecordPropertyAccess(name,cmProperty::VARIABLE); } #endif const char* def = 0; |