summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-10 15:10:59 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-10 15:10:59 (GMT)
commite5e91d617940cab2ea4e8630c6c20cd09794b3a9 (patch)
tree07799700331300e0e2e2a4ffdef98f5040f20736 /Source/cmGetPropertyCommand.h
parentca9fb4826f89722a5a190e0c69e6bf5c26889a55 (diff)
downloadCMake-e5e91d617940cab2ea4e8630c6c20cd09794b3a9.zip
CMake-e5e91d617940cab2ea4e8630c6c20cd09794b3a9.tar.gz
CMake-e5e91d617940cab2ea4e8630c6c20cd09794b3a9.tar.bz2
ENH: Teach set/get_property about CACHE properties
This adds the CACHE option to set_property and get_property commands. This allows full control over cache entry information, so advanced users can tweak their project cache as desired. The set_property command allows only pre-defined CACHE properties to be set since others would not persist anyway.
Diffstat (limited to 'Source/cmGetPropertyCommand.h')
-rw-r--r--Source/cmGetPropertyCommand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGetPropertyCommand.h b/Source/cmGetPropertyCommand.h
index a8976c5..b4ec3cc 100644
--- a/Source/cmGetPropertyCommand.h
+++ b/Source/cmGetPropertyCommand.h
@@ -66,6 +66,7 @@ public:
" TARGET <target> |\n"
" SOURCE <source> |\n"
" TEST <test> |\n"
+ " CACHE <entry> |\n"
" VARIABLE>\n"
" PROPERTY <name>\n"
" [SET | DEFINED | BRIEF_DOCS | FULL_DOCS])\n"
@@ -81,6 +82,7 @@ public:
"TARGET scope must name one existing target.\n"
"SOURCE scope must name one source file.\n"
"TEST scope must name one existing test.\n"
+ "CACHE scope must name one cache entry.\n"
"VARIABLE scope is unique and does not accept a name.\n"
"The required PROPERTY option is immediately followed by the name "
"of the property to get. "
@@ -114,6 +116,7 @@ private:
bool HandleSourceMode();
bool HandleTestMode();
bool HandleVariableMode();
+ bool HandleCacheMode();
};
#endif