mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05:00
cmCustomCommand: Record value of CMP0116 at time of creation
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user