summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-12-10 11:00:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-10 17:06:03 (GMT)
commitf99196dc0cde6e5868cc74c603a78b10f1ba324a (patch)
tree9e9a61b1c467d184904b1a290f5e7c3c57ec0673 /Source/cmGeneratorExpression.h
parent93034a8350102e308fa5bca8d89bf3f6fae12771 (diff)
downloadCMake-f99196dc0cde6e5868cc74c603a78b10f1ba324a.zip
CMake-f99196dc0cde6e5868cc74c603a78b10f1ba324a.tar.gz
CMake-f99196dc0cde6e5868cc74c603a78b10f1ba324a.tar.bz2
Add cmGeneratorExpression::Split() API.
It can split a string like "A;$<1:B>;$<1:C>;D;E;$<1:F;G;H>;$<1:I>;J" into "A" "$<1:B>" "$<1:C>" "D" "E" "$<1:F;G;H>" "$<1:I>" "J"
Diffstat (limited to 'Source/cmGeneratorExpression.h')
-rw-r--r--Source/cmGeneratorExpression.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpression.h b/Source/cmGeneratorExpression.h
index b58dde5..8f1aef6 100644
--- a/Source/cmGeneratorExpression.h
+++ b/Source/cmGeneratorExpression.h
@@ -59,6 +59,9 @@ public:
static std::string Preprocess(const std::string &input,
PreprocessContext context);
+ static void Split(const std::string &input,
+ std::vector<std::string> &output);
+
private:
cmGeneratorExpression(const cmGeneratorExpression &);
void operator=(const cmGeneratorExpression &);