diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-04 21:33:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-13 18:13:13 (GMT) |
commit | b159bff732d4e34a683edd1740604428049d1819 (patch) | |
tree | ef8513a3fa37802bc27c11543209da7e8cd9f2da /Source/cmake.cxx | |
parent | 62c5e6f1a19df0043a0e9aaba6cf7247f76a5cc3 (diff) | |
download | CMake-b159bff732d4e34a683edd1740604428049d1819.zip CMake-b159bff732d4e34a683edd1740604428049d1819.tar.gz CMake-b159bff732d4e34a683edd1740604428049d1819.tar.bz2 |
Move property definition to cmState.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8cdf96f..6adecee 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -191,11 +191,8 @@ cmake::~cmake() void cmake::InitializeProperties() { this->Properties.clear(); - this->PropertyDefinitions.clear(); - // initialize properties - cmTarget::DefineProperties(this); - cmMakefile::DefineProperties(this); + this->State->Initialize(); } void cmake::CleanupCommandsAndMacros() @@ -2298,40 +2295,6 @@ void cmake::GenerateGraphViz(const char* fileName) const #endif } -void cmake::DefineProperty(const std::string& name, - cmProperty::ScopeType scope, - const char *ShortDescription, - const char *FullDescription, - bool chained) -{ - this->PropertyDefinitions[scope].DefineProperty(name,scope,ShortDescription, - FullDescription, - chained); -} - -cmPropertyDefinition *cmake -::GetPropertyDefinition(const std::string& name, - cmProperty::ScopeType scope) -{ - if (this->IsPropertyDefined(name,scope)) - { - return &(this->PropertyDefinitions[scope][name]); - } - return 0; -} - -bool cmake::IsPropertyDefined(const std::string& name, - cmProperty::ScopeType scope) -{ - return this->PropertyDefinitions[scope].IsPropertyDefined(name); -} - -bool cmake::IsPropertyChained(const std::string& name, - cmProperty::ScopeType scope) -{ - return this->PropertyDefinitions[scope].IsPropertyChained(name); -} - void cmake::SetProperty(const std::string& prop, const char* value) { this->Properties.SetProperty(prop, value, cmProperty::GLOBAL); |