diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-24 18:43:10 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-24 18:43:10 (GMT) |
commit | f72d666a7bd7a1b58db5f08b5ee9124f6768fa2a (patch) | |
tree | 60e30ec34afc9bf475546d35689b4e18144956bd /Source/cmake.cxx | |
parent | c2f0aac146f6b990940240891b959dc1f394e80c (diff) | |
download | CMake-f72d666a7bd7a1b58db5f08b5ee9124f6768fa2a.zip CMake-f72d666a7bd7a1b58db5f08b5ee9124f6768fa2a.tar.gz CMake-f72d666a7bd7a1b58db5f08b5ee9124f6768fa2a.tar.bz2 |
ENH: add ability to get documentaiton of a property from a script
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 01fcae6..7dade6f 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -3093,6 +3093,17 @@ void cmake::DefineProperty(const char *name, cmProperty::ScopeType scope, chained); } +cmPropertyDefinition *cmake +::GetPropertyDefinition(const char *name, + cmProperty::ScopeType scope) +{ + if (this->IsPropertyDefined(name,scope)) + { + return &(this->PropertyDefinitions[scope][name]); + } + return 0; +} + bool cmake::IsPropertyDefined(const char *name, cmProperty::ScopeType scope) { return this->PropertyDefinitions[scope].IsPropertyDefined(name); |