diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-22 20:24:52 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-23 14:14:31 (GMT) |
commit | f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f (patch) | |
tree | 068148e5d0c2cb851f875b2edc668988b613bc55 /Source/cmQtAutoGenGlobalInitializer.cxx | |
parent | 33d93089ef25d39e335ccc63c9e27c91a39e7bb1 (diff) | |
download | CMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.zip CMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.tar.gz CMake-f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f.tar.bz2 |
cmCustomCommand: Record value of CMP0116 at time of creation
Diffstat (limited to 'Source/cmQtAutoGenGlobalInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGenGlobalInitializer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenGlobalInitializer.cxx b/Source/cmQtAutoGenGlobalInitializer.cxx index 62b879f..f79ffd4 100644 --- a/Source/cmQtAutoGenGlobalInitializer.cxx +++ b/Source/cmQtAutoGenGlobalInitializer.cxx @@ -13,6 +13,7 @@ #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmMessageType.h" +#include "cmPolicies.h" #include "cmProcessOutput.h" #include "cmProperty.h" #include "cmQtAutoGen.h" @@ -167,9 +168,10 @@ void cmQtAutoGenGlobalInitializer::GetOrCreateGlobalTarget( std::vector<std::string> no_byproducts; std::vector<std::string> no_depends; cmCustomCommandLines no_commands; + const cmPolicies::PolicyStatus cmp0116_new = cmPolicies::NEW; cmTarget* target = localGen->AddUtilityCommand( name, true, makefile->GetHomeOutputDirectory().c_str(), no_byproducts, - no_depends, no_commands, false, comment.c_str()); + no_depends, no_commands, cmp0116_new, false, comment.c_str()); localGen->AddGeneratorTarget( cm::make_unique<cmGeneratorTarget>(target, localGen)); |