cmCustomCommand: Record value of CMP0116 at time of creation

This commit is contained in:
Kyle Edwards
2021-02-22 15:24:52 -05:00
parent 33d93089ef
commit f01f10e8fb
18 changed files with 190 additions and 145 deletions
+5 -4
View File
@@ -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.