cmCustomCommand: Record value of CMP0116 at time of creation

This commit is contained in:
Kyle Edwards
2021-02-22 15:24:52 -05:00
parent 33d93089ef
commit f01f10e8fb
18 changed files with 190 additions and 145 deletions

View File

@@ -10,6 +10,7 @@
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmMessageType.h"
#include "cmPolicies.h"
#include "cmStateTypes.h"
#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
@@ -213,8 +214,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, escapeOldStyle, comment, uses_terminal, command_expand_lists,
job_pool);
commandLines, mf.GetPolicyStatus(cmPolicies::CMP0116), escapeOldStyle,
comment, uses_terminal, command_expand_lists, job_pool);
// Add additional user-specified source files to the target.
target->AddSources(sources);