summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-18 10:24:41 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-18 11:07:32 (GMT)
commitec2c67bcf3aada9b601d5dca52b31a4fb6104240 (patch)
treee0fabec542d7f0248157a32c67826339521e5bce /Source/cmGeneratorExpression.cxx
parenta0ac2c59feec347a4cc93ab46fcf28f1dad49e99 (diff)
downloadCMake-ec2c67bcf3aada9b601d5dca52b31a4fb6104240.zip
CMake-ec2c67bcf3aada9b601d5dca52b31a4fb6104240.tar.gz
CMake-ec2c67bcf3aada9b601d5dca52b31a4fb6104240.tar.bz2
Strip stray semicolons when evaluating generator expressions.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r--Source/cmGeneratorExpression.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index 5d162fe..08ffe1d 100644
--- a/Source/cmGeneratorExpression.cxx
+++ b/Source/cmGeneratorExpression.cxx
@@ -153,7 +153,8 @@ cmCompiledGeneratorExpression::~cmCompiledGeneratorExpression()
}
//----------------------------------------------------------------------------
-static std::string stripEmptyListElements(const std::string &input)
+std::string cmGeneratorExpression::StripEmptyListElements(
+ const std::string &input)
{
std::string result;
@@ -223,7 +224,7 @@ static std::string stripAllGeneratorExpressions(const std::string &input)
lastPos = pos;
}
result += input.substr(lastPos);
- return stripEmptyListElements(result);
+ return cmGeneratorExpression::StripEmptyListElements(result);
}
//----------------------------------------------------------------------------
@@ -284,7 +285,7 @@ static std::string stripExportInterface(const std::string &input,
}
result += input.substr(lastPos);
- return stripEmptyListElements(result);
+ return cmGeneratorExpression::StripEmptyListElements(result);
}
//----------------------------------------------------------------------------