summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-16 13:55:54 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-10 12:06:21 (GMT)
commit947ba01bf987bce09c2fdd5e2547f79af2c5844b (patch)
tree953be58128f912a1e472e8eca5a51b6b772d10ee /Source/cmLocalGenerator.cxx
parent1902d28ebc50ee93acb1be2320b79f2e844f7f41 (diff)
downloadCMake-947ba01bf987bce09c2fdd5e2547f79af2c5844b.zip
CMake-947ba01bf987bce09c2fdd5e2547f79af2c5844b.tar.gz
CMake-947ba01bf987bce09c2fdd5e2547f79af2c5844b.tar.bz2
cmLocalGenerator: Factor out helper to expand custom command output paths
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 832c36c..8a9cb04 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -4169,6 +4169,16 @@ cmSourceFile* cmLocalGenerator::GetSourceFileWithOutput(
return nullptr;
}
+std::vector<std::string> cmLocalGenerator::ExpandCustomCommandOutputPaths(
+ cmCompiledGeneratorExpression const& cge, std::string const& config)
+{
+ std::vector<std::string> paths = cmExpandedList(cge.Evaluate(this, config));
+ for (std::string& p : paths) {
+ p = cmSystemTools::CollapseFullPath(p, this->GetCurrentBinaryDirectory());
+ }
+ return paths;
+}
+
void cmLocalGenerator::AddTargetByproducts(
cmTarget* target, const std::vector<std::string>& byproducts)
{