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/cmAddCustomTargetCommand.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/cmAddCustomTargetCommand.cxx')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index 2b19aad..104065f 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -10,7 +10,6 @@ #include "cmGlobalGenerator.h" #include "cmMakefile.h" #include "cmMessageType.h" -#include "cmPolicies.h" #include "cmStateTypes.h" #include "cmStringAlgorithms.h" #include "cmSystemTools.h" @@ -214,8 +213,8 @@ bool cmAddCustomTargetCommand(std::vector<std::string> const& args, bool escapeOldStyle = !verbatim; cmTarget* target = mf.AddUtilityCommand( targetName, excludeFromAll, working_directory.c_str(), byproducts, depends, - commandLines, mf.GetPolicyStatus(cmPolicies::CMP0116), escapeOldStyle, - comment, uses_terminal, command_expand_lists, job_pool); + commandLines, escapeOldStyle, comment, uses_terminal, command_expand_lists, + job_pool); // Add additional user-specified source files to the target. target->AddSources(sources); |