diff options
author | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-11 16:18:47 (GMT) |
---|---|---|
committer | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-17 20:58:31 (GMT) |
commit | a583b7bc17b30c7772d6ca1909c71c0c14e6fabb (patch) | |
tree | 3c247efcfe09c41fec2931abab1fdbff2033a3d3 /Source/cmMakefileTargetGenerator.cxx | |
parent | ccc9685cc1fb61242f179a02661730140b026253 (diff) | |
download | CMake-a583b7bc17b30c7772d6ca1909c71c0c14e6fabb.zip CMake-a583b7bc17b30c7772d6ca1909c71c0c14e6fabb.tar.gz CMake-a583b7bc17b30c7772d6ca1909c71c0c14e6fabb.tar.bz2 |
Genex: Evaluate byproduct generator expressions in cmCustomCommandGenerator
Evaluate and expand generator expressions in byproducts of custom commands.
Note that it is still not possible to use generator expressions in byproducts
of the commands `add_custom_command` and `add_custom_target`. These commands
still reject the input. This is a preparation step for OUTPUT generator
expression support.
Issue: #12877
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 84e95ef..482af22 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -221,7 +221,8 @@ void cmMakefileTargetGenerator::WriteTargetBuildRules() this->GeneratorTarget->GetPostBuildCommands()); for (const auto& be : buildEventCommands) { - const std::vector<std::string>& byproducts = be.GetByproducts(); + cmCustomCommandGenerator beg(be, this->ConfigName, this->LocalGenerator); + const std::vector<std::string>& byproducts = beg.GetByproducts(); for (std::string const& byproduct : byproducts) { this->CleanFiles.insert( this->LocalGenerator->MaybeConvertToRelativePath(currentBinDir, |