summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinePropertyCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-06-25 14:34:21 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-06-25 14:34:21 (GMT)
commit0b9644910d637fdf7b006adb21ca04f3f218959f (patch)
tree3da2f0f09aef950b98ca1489790584387cc0c9df /Source/cmDefinePropertyCommand.cxx
parente35da01febbf86fefbd048dae473eb0993016613 (diff)
downloadCMake-0b9644910d637fdf7b006adb21ca04f3f218959f.zip
CMake-0b9644910d637fdf7b006adb21ca04f3f218959f.tar.gz
CMake-0b9644910d637fdf7b006adb21ca04f3f218959f.tar.bz2
ENH: added the ability to document variables and cached_variables
Diffstat (limited to 'Source/cmDefinePropertyCommand.cxx')
-rw-r--r--Source/cmDefinePropertyCommand.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDefinePropertyCommand.cxx b/Source/cmDefinePropertyCommand.cxx
index 15a8cf5..f0bd7d8 100644
--- a/Source/cmDefinePropertyCommand.cxx
+++ b/Source/cmDefinePropertyCommand.cxx
@@ -49,6 +49,14 @@ bool cmDefinePropertyCommand::InitialPass(
{
scope = cmProperty::TEST;
}
+ else if (args[1] == "VARIABLE")
+ {
+ scope = cmProperty::VARIABLE;
+ }
+ else if (args[1] == "CACHED_VARIABLE")
+ {
+ scope = cmProperty::CACHED_VARIABLE;
+ }
else
{
this->SetError("called with illegal arguments.");