diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-06 12:18:10 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-07 15:21:08 (GMT) |
commit | 92e98dd909bd399f508ff7c2f9657095ddc766cc (patch) | |
tree | 37cdba7d39615395842c1a1a0dffb84f1b68fc68 /Source/cmExportFileGenerator.cxx | |
parent | 1714c27a74c1616e5998a1a51fe42848a1f1c389 (diff) | |
download | CMake-92e98dd909bd399f508ff7c2f9657095ddc766cc.zip CMake-92e98dd909bd399f508ff7c2f9657095ddc766cc.tar.gz CMake-92e98dd909bd399f508ff7c2f9657095ddc766cc.tar.bz2 |
Deduplicate the isGeneratorExpression method.
This API seems like the most appropriate.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 7e4c3df..fbed95a 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -315,14 +315,6 @@ cmExportFileGenerator::AddTargetNamespace(std::string &input, } //---------------------------------------------------------------------------- -static bool isGeneratorExpression(const std::string &lib) -{ - const std::string::size_type openpos = lib.find("$<"); - return (openpos != std::string::npos) - && (lib.find(">", openpos) != std::string::npos); -} - -//---------------------------------------------------------------------------- void cmExportFileGenerator::ResolveTargetsInGeneratorExpressions( std::string &input, @@ -344,7 +336,7 @@ cmExportFileGenerator::ResolveTargetsInGeneratorExpressions( for(std::vector<std::string>::iterator li = parts.begin(); li != parts.end(); ++li) { - if (!isGeneratorExpression(*li)) + if (cmGeneratorExpression::Find(*li) == std::string::npos) { this->AddTargetNamespace(*li, target, missingTargets); } |