Merge branch 'vs-16.4-global-targets' into release-3.16

Merge-request: !3896
This commit is contained in:
Brad King
2019-10-09 09:19:40 -04:00

View File

@@ -98,6 +98,10 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets()
std::string no_main_dependency;
std::string force = cmStrCat(this->GetCurrentBinaryDirectory(),
"/CMakeFiles/", l->GetName(), "_force");
if (cmSourceFile* sf =
this->Makefile->GetOrCreateGeneratedSource(force)) {
sf->SetProperty("SYMBOLIC", "1");
}
if (cmSourceFile* file = this->Makefile->AddCustomCommandToOutput(
force.c_str(), no_depends, no_main_dependency, force_commands, " ",
0, true)) {