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/cmLocalVisualStudio7Generator.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/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 97869c2..a3940ea 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -121,7 +121,7 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets() } if (cmSourceFile* file = this->AddCustomCommandToOutput( force, no_depends, no_main_dependency, force_commands, " ", - nullptr, true)) { + nullptr, cmPolicies::NEW, true)) { l->AddSource(file->ResolveFullPath()); } } @@ -245,9 +245,10 @@ cmSourceFile* cmLocalVisualStudio7Generator::CreateVCProjBuildRule() "--check-stamp-file", stampName }); std::string comment = cmStrCat("Building Custom Rule ", makefileIn); const char* no_working_directory = nullptr; - this->AddCustomCommandToOutput( - stampName, listFiles, makefileIn, commandLines, comment.c_str(), - no_working_directory, true, false, false, false, "", "", stdPipesUTF8); + this->AddCustomCommandToOutput(stampName, listFiles, makefileIn, + commandLines, comment.c_str(), + no_working_directory, cmPolicies::NEW, true, + false, false, false, "", "", stdPipesUTF8); if (cmSourceFile* file = this->Makefile->GetSource(makefileIn)) { // Finalize the source file path now since we're adding this after // the generator validated all project-named sources. |