summaryrefslogtreecommitdiffstats
path: root/Source/cmIDEOptions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-15 14:35:36 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-15 15:36:09 (GMT)
commit3936a2886efc1fd46560352f3a48d6a656f95367 (patch)
tree25a3471d6115013682d7496c7ffd79972f0ea5cf /Source/cmIDEOptions.h
parent72cfb3c3d2e8f6167cf08289691f7b0c61d0d331 (diff)
downloadCMake-3936a2886efc1fd46560352f3a48d6a656f95367.zip
CMake-3936a2886efc1fd46560352f3a48d6a656f95367.tar.gz
CMake-3936a2886efc1fd46560352f3a48d6a656f95367.tar.bz2
cmIDEOptions: Add SpaceAppendable flag table type
Diffstat (limited to 'Source/cmIDEOptions.h')
-rw-r--r--Source/cmIDEOptions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h
index a0696e1..aaa9d3d 100644
--- a/Source/cmIDEOptions.h
+++ b/Source/cmIDEOptions.h
@@ -29,6 +29,7 @@ public:
void AppendFlag(std::string const& flag, std::string const& value);
void AppendFlag(std::string const& flag,
std::vector<std::string> const& value);
+ void AppendFlagString(std::string const& flag, std::string const& value);
void RemoveFlag(const char* flag);
bool HasFlag(std::string const& flag) const;
const char* GetFlag(const char* flag);
@@ -57,6 +58,16 @@ protected:
this->derived::operator=(r);
return *this;
}
+ FlagValue& append_with_space(std::string const& r)
+ {
+ this->resize(1);
+ std::string& l = this->operator[](0);
+ if (!l.empty()) {
+ l += " ";
+ }
+ l += r;
+ return *this;
+ }
};
std::map<std::string, FlagValue> FlagMap;