diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-22 15:24:52 -0500 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-23 09:14:31 -0500 |
commit | f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f (patch) | |
tree | 068148e5d0c2cb851f875b2edc668988b613bc55 /Source/cmQTWrapCPPCommand.cxx | |
parent | 33d93089ef25d39e335ccc63c9e27c91a39e7bb1 (diff) | |
download | cmake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.tar.gz |
cmCustomCommand: Record value of CMP0116 at time of creation
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r-- | Source/cmQTWrapCPPCommand.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx index e0581764a9..e9670f9c3a 100644 --- a/Source/cmQTWrapCPPCommand.cxx +++ b/Source/cmQTWrapCPPCommand.cxx @@ -5,6 +5,7 @@ #include "cmCustomCommandLines.h" #include "cmExecutionStatus.h" #include "cmMakefile.h" +#include "cmPolicies.h" #include "cmProperty.h" #include "cmRange.h" #include "cmSourceFile.h" @@ -73,9 +74,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.AddCustomCommandToOutput( + newName, depends, no_main_dependency, commandLines, "Qt Wrapped File", + no_working_dir, mf.GetPolicyStatus(cmPolicies::CMP0116)); } } |