diff options
author | Brad King <brad.king@kitware.com> | 2020-10-16 13:55:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-10 12:06:21 (GMT) |
commit | 947ba01bf987bce09c2fdd5e2547f79af2c5844b (patch) | |
tree | 953be58128f912a1e472e8eca5a51b6b772d10ee /Source/cmLocalGenerator.cxx | |
parent | 1902d28ebc50ee93acb1be2320b79f2e844f7f41 (diff) | |
download | CMake-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.cxx | 10 |
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) { |