diff options
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. |