summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-25 18:12:12 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-02-25 18:12:12 (GMT)
commit57072c12d2e9302cefa66c96e55a595de085a161 (patch)
tree8c41b27c68aab8dfbd9ab75b2eab1e3028c4f9ed /Source/cmGeneratorExpression.cxx
parent990c440ddd599d0bf4cad2cb7ac1688a42dca6d9 (diff)
parent8dfdf1c734af19a1e49efa4568e5e1f8fc7cb2f2 (diff)
downloadCMake-57072c12d2e9302cefa66c96e55a595de085a161.zip
CMake-57072c12d2e9302cefa66c96e55a595de085a161.tar.gz
CMake-57072c12d2e9302cefa66c96e55a595de085a161.tar.bz2
Merge topic 'interface-property-external-read'
8dfdf1c Fix the tests for evaluating includes and defines. 98a6725 Fix constness of accessors. 7e70744 Expand includes and defines transitively in 'external' genexes. d1a2729 Fix DAG checker finding cycling dependencies. e72eaad Workaround broken code where a target has itself in its link iface. ec2c67b 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 51ebddb..34d80ec 100644
--- a/Source/cmGeneratorExpression.cxx
+++ b/Source/cmGeneratorExpression.cxx
@@ -154,7 +154,8 @@ cmCompiledGeneratorExpression::~cmCompiledGeneratorExpression()
}
//----------------------------------------------------------------------------
-static std::string stripEmptyListElements(const std::string &input)
+std::string cmGeneratorExpression::StripEmptyListElements(
+ const std::string &input)
{
std::string result;
@@ -224,7 +225,7 @@ static std::string stripAllGeneratorExpressions(const std::string &input)
lastPos = pos;
}
result += input.substr(lastPos);
- return stripEmptyListElements(result);
+ return cmGeneratorExpression::StripEmptyListElements(result);
}
//----------------------------------------------------------------------------
@@ -285,7 +286,7 @@ static std::string stripExportInterface(const std::string &input,
}
result += input.substr(lastPos);
- return stripEmptyListElements(result);
+ return cmGeneratorExpression::StripEmptyListElements(result);
}
//----------------------------------------------------------------------------