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/cmQTWrapCPPCommand.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/cmQTWrapCPPCommand.cxx')
-rw-r--r-- | Source/cmQTWrapCPPCommand.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx index ca0b259..cc4df8f 100644 --- a/Source/cmQTWrapCPPCommand.cxx +++ b/Source/cmQTWrapCPPCommand.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" @@ -73,9 +72,9 @@ bool cmQTWrapCPPCommand(std::vector<std::string> const& args, std::string no_main_dependency; const char* no_working_dir = nullptr; - mf.AddCustomCommandToOutput( - newName, depends, no_main_dependency, commandLines, "Qt Wrapped File", - no_working_dir, mf.GetPolicyStatus(cmPolicies::CMP0116)); + mf.AddCustomCommandToOutput(newName, depends, no_main_dependency, + commandLines, "Qt Wrapped File", + no_working_dir); } } |