diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2021-11-03 04:23:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-18 17:02:37 (GMT) |
commit | d0158b765b0660bcfe304830e179fa9bbdffd5d9 (patch) | |
tree | 06283349a5b741130cec4cf5e6045a94bc4b1613 /Source/cmQTWrapUICommand.cxx | |
parent | 2bad0145af7fab909ce9c8272b2057be52f0b40d (diff) | |
download | CMake-d0158b765b0660bcfe304830e179fa9bbdffd5d9.zip CMake-d0158b765b0660bcfe304830e179fa9bbdffd5d9.tar.gz CMake-d0158b765b0660bcfe304830e179fa9bbdffd5d9.tar.bz2 |
cmMakefile: Move CMP0116 lookup into Add{Custom,Utility}Command
Avoid repeating it at every call site.
Diffstat (limited to 'Source/cmQTWrapUICommand.cxx')
-rw-r--r-- | Source/cmQTWrapUICommand.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index f98f0b3..66c0228 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -5,7 +5,6 @@ #include "cmCustomCommandLines.h" #include "cmExecutionStatus.h" #include "cmMakefile.h" -#include "cmPolicies.h" #include "cmRange.h" #include "cmSourceFile.h" #include "cmStringAlgorithms.h" @@ -88,19 +87,16 @@ bool cmQTWrapUICommand(std::vector<std::string> const& args, const char* no_comment = nullptr; const char* no_working_dir = nullptr; mf.AddCustomCommandToOutput(hName, depends, no_main_dependency, - hCommandLines, no_comment, no_working_dir, - mf.GetPolicyStatus(cmPolicies::CMP0116)); + hCommandLines, no_comment, no_working_dir); depends.push_back(hName); mf.AddCustomCommandToOutput(cxxName, depends, no_main_dependency, - cxxCommandLines, no_comment, no_working_dir, - mf.GetPolicyStatus(cmPolicies::CMP0116)); + cxxCommandLines, no_comment, no_working_dir); depends.clear(); depends.push_back(hName); mf.AddCustomCommandToOutput(mocName, depends, no_main_dependency, - mocCommandLines, no_comment, no_working_dir, - mf.GetPolicyStatus(cmPolicies::CMP0116)); + mocCommandLines, no_comment, no_working_dir); } } |