summaryrefslogtreecommitdiffstats
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-12 14:52:40 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-12 14:52:40 (GMT)
commitdd7b48c9c386ffd7fa184284403988df85a38279 (patch)
treefe110d5cc93dbd658c20f1310f717b559b3fa48c /Source/cmSetPropertyCommand.cxx
parent1b43bea91c9b6dd4d83b55631273db648766463d (diff)
downloadCMake-dd7b48c9c386ffd7fa184284403988df85a38279.zip
CMake-dd7b48c9c386ffd7fa184284403988df85a38279.tar.gz
CMake-dd7b48c9c386ffd7fa184284403988df85a38279.tar.bz2
ENH: Define STRINGS cache entry property
This property defines a list of values for a cache entry of type STRING. A CMake GUI may optionally use a drop-down selection widget for the entry instead of a generic text entry field. We do not enforce that the value of the entry match one of the strings listed.
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r--Source/cmSetPropertyCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx
index fbe877b..caed6dc 100644
--- a/Source/cmSetPropertyCommand.cxx
+++ b/Source/cmSetPropertyCommand.cxx
@@ -419,12 +419,13 @@ bool cmSetPropertyCommand::HandleCacheMode()
}
}
else if(this->PropertyName != "HELPSTRING" &&
+ this->PropertyName != "STRINGS" &&
this->PropertyName != "VALUE")
{
cmOStringStream e;
e << "given invalid CACHE property " << this->PropertyName << ". "
<< "Settable CACHE properties are: "
- << "ADVANCED, HELPSTRING, TYPE, and VALUE.";
+ << "ADVANCED, HELPSTRING, STRINGS, TYPE, and VALUE.";
this->SetError(e.str().c_str());
return false;
}