diff options
author | Brad King <brad.king@kitware.com> | 2009-03-10 15:10:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-10 15:10:59 (GMT) |
commit | e5e91d617940cab2ea4e8630c6c20cd09794b3a9 (patch) | |
tree | 07799700331300e0e2e2a4ffdef98f5040f20736 /Source/cmSetPropertyCommand.h | |
parent | ca9fb4826f89722a5a190e0c69e6bf5c26889a55 (diff) | |
download | CMake-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/cmSetPropertyCommand.h')
-rw-r--r-- | Source/cmSetPropertyCommand.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSetPropertyCommand.h b/Source/cmSetPropertyCommand.h index 8ef0b7c..4d7decf 100644 --- a/Source/cmSetPropertyCommand.h +++ b/Source/cmSetPropertyCommand.h @@ -59,7 +59,8 @@ public: " DIRECTORY [dir] |\n" " TARGET [target1 [target2 ...]] |\n" " SOURCE [src1 [src2 ...]] |\n" - " TEST [test1 [test2 ...]]>\n" + " TEST [test1 [test2 ...]] |\n" + " CACHE [entry1 [entry2 ...]]>\n" " [APPEND]\n" " PROPERTY <name> [value1 [value2 ...]])\n" "Set one property on zero or more objects of a scope. " @@ -72,6 +73,7 @@ public: "TARGET scope may name zero or more existing targets.\n" "SOURCE scope may name zero or more source files.\n" "TEST scope may name zero or more existing tests.\n" + "CACHE scope must name zero or more cache existing entries.\n" "The required PROPERTY option is immediately followed by the name " "of the property to set. Remaining arguments are used to " "compose the property value in the form of a semicolon-separated " @@ -104,6 +106,8 @@ private: bool HandleSource(cmSourceFile* sf); bool HandleTestMode(); bool HandleTest(cmTest* test); + bool HandleCacheMode(); + bool HandleCacheEntry(cmCacheManager::CacheIterator&); }; |