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/cmFLTKWrapUICommand.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/cmFLTKWrapUICommand.cxx')
-rw-r--r-- | Source/cmFLTKWrapUICommand.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index 77d5795..d88617a 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -10,7 +10,6 @@ #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmMessageType.h" -#include "cmPolicies.h" #include "cmRange.h" #include "cmSourceFile.h" #include "cmStringAlgorithms.h" @@ -99,11 +98,9 @@ bool cmFLTKWrapUICommand(std::vector<std::string> const& args, const char* no_comment = nullptr; const char* no_working_dir = nullptr; mf.AddCustomCommandToOutput(cxxres, depends, no_main_dependency, - commandLines, no_comment, no_working_dir, - mf.GetPolicyStatus(cmPolicies::CMP0116)); + commandLines, no_comment, no_working_dir); mf.AddCustomCommandToOutput(hname, depends, no_main_dependency, - commandLines, no_comment, no_working_dir, - mf.GetPolicyStatus(cmPolicies::CMP0116)); + commandLines, no_comment, no_working_dir); cmSourceFile* sf = mf.GetSource(cxxres); sf->AddDepend(hname); |