diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2021-12-12 06:01:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-14 15:48:43 (GMT) |
commit | 780341f360773d7b3b766b835bd539f46397e0a6 (patch) | |
tree | 767cdbaa73a9b9c7c38a31ab962034f1386d918f /Source/cmQTWrapUICommand.cxx | |
parent | a6fa3fa136c291c36aefbc79b62995a63bf9107b (diff) | |
download | CMake-780341f360773d7b3b766b835bd539f46397e0a6.zip CMake-780341f360773d7b3b766b835bd539f46397e0a6.tar.gz CMake-780341f360773d7b3b766b835bd539f46397e0a6.tar.bz2 |
cmCustomCommand: Track main dependency explicitly
Store the main dependency as the first entry in the dependency list plus
a boolean member indicating its existence. Note that this slightly
changes existing behavior: the main dependency was previously the last
entry of the dependency list.
Diffstat (limited to 'Source/cmQTWrapUICommand.cxx')
-rw-r--r-- | Source/cmQTWrapUICommand.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index 4d65f33..8b2a42c 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -88,19 +88,18 @@ bool cmQTWrapUICommand(std::vector<std::string> const& args, std::vector<std::string> depends; depends.push_back(uiName); - std::string no_main_dependency; auto cc = cm::make_unique<cmCustomCommand>(); cc->SetOutputs(hName); cc->SetDepends(depends); cc->SetCommandLines(hCommandLines); - mf.AddCustomCommandToOutput(no_main_dependency, std::move(cc)); + mf.AddCustomCommandToOutput(std::move(cc)); depends.push_back(hName); cc = cm::make_unique<cmCustomCommand>(); cc->SetOutputs(cxxName); cc->SetDepends(depends); cc->SetCommandLines(cxxCommandLines); - mf.AddCustomCommandToOutput(no_main_dependency, std::move(cc)); + mf.AddCustomCommandToOutput(std::move(cc)); depends.clear(); depends.push_back(hName); @@ -108,7 +107,7 @@ bool cmQTWrapUICommand(std::vector<std::string> const& args, cc->SetOutputs(mocName); cc->SetDepends(depends); cc->SetCommandLines(mocCommandLines); - mf.AddCustomCommandToOutput(no_main_dependency, std::move(cc)); + mf.AddCustomCommandToOutput(std::move(cc)); } } |