summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-02-22 20:24:52 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-02-23 14:14:31 (GMT)
commitf01f10e8fbe2f740e210f467877f6d6b8e8d7e1f (patch)
tree068148e5d0c2cb851f875b2edc668988b613bc55 /Source/cmAddCustomTargetCommand.cxx
parent33d93089ef25d39e335ccc63c9e27c91a39e7bb1 (diff)
downloadCMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.zip
CMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.tar.gz
CMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.tar.bz2
cmCustomCommand: Record value of CMP0116 at time of creation
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index 104065f..2b19aad 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -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);