mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
ENH: support unset of properties
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
" TEST <test> |\n"
|
||||
" VARIABLE>\n"
|
||||
" PROPERTY <name>\n"
|
||||
" [DEFINED | BRIEF_DOCS | FULL_DOCS])\n"
|
||||
" [SET | DEFINED | BRIEF_DOCS | FULL_DOCS])\n"
|
||||
"Get one property from one object in a scope. "
|
||||
"The first argument specifies the variable in which to store the "
|
||||
"result. "
|
||||
@@ -85,8 +85,11 @@ public:
|
||||
"The required PROPERTY option is immediately followed by the name "
|
||||
"of the property to get. "
|
||||
"If the property is not set an empty value is returned. "
|
||||
"If the SET option is given the variable is set to a boolean "
|
||||
"value indicating whether the property has been set."
|
||||
"If the DEFINED option is given the variable is set to a boolean "
|
||||
"value indicating whether the property has been set. "
|
||||
"value indicating whether the property has been defined "
|
||||
"such as with define_property. "
|
||||
"If BRIEF_DOCS or FULL_DOCS is given then the variable is set to "
|
||||
"a string containing documentation for the requested property. "
|
||||
"If documentation is requested for a property that has not been "
|
||||
@@ -95,7 +98,7 @@ public:
|
||||
|
||||
cmTypeMacro(cmGetPropertyCommand, cmCommand);
|
||||
private:
|
||||
enum OutType { OutValue, OutDefined, OutBriefDoc, OutFullDoc };
|
||||
enum OutType { OutValue, OutDefined, OutBriefDoc, OutFullDoc, OutSet };
|
||||
std::string Variable;
|
||||
std::string Name;
|
||||
std::string PropertyName;
|
||||
|
||||
Reference in New Issue
Block a user