mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
VS: For Intel Fortran .vfproj put OBJECT libs in link line (#14777)
The Intel Fortran .vfproj format accepts the $(Configuration) placeholder in the path to an input file but appears to consider it always out of date. Therefore adding OBJECT library objects as external object source files causes the referencing binary to re-link on every build. Work around this problem by putting OBJECT library objects on the link line as is done for VS < 8 already.
This commit is contained in:
parent
0f9dbc1608
commit
0f55f2547f
@ -1044,7 +1044,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
||||
fout << "\t\t\t<Tool\n"
|
||||
<< "\t\t\t\tName=\"" << tool << "\"\n";
|
||||
|
||||
if(this->GetVersion() < VS8)
|
||||
if(this->GetVersion() < VS8 || this->FortranProject)
|
||||
{
|
||||
cmOStringStream libdeps;
|
||||
this->Internal->OutputObjects(libdeps, &target);
|
||||
@ -1104,7 +1104,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
||||
// libraries which may be set by the user to something bad.
|
||||
fout << "\t\t\t\tAdditionalDependencies=\"$(NOINHERIT) "
|
||||
<< this->Makefile->GetSafeDefinition(standardLibsVar.c_str());
|
||||
if(this->GetVersion() < VS8)
|
||||
if(this->GetVersion() < VS8 || this->FortranProject)
|
||||
{
|
||||
this->Internal->OutputObjects(fout, &target, " ");
|
||||
}
|
||||
@ -1202,7 +1202,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
||||
// libraries which may be set by the user to something bad.
|
||||
fout << "\t\t\t\tAdditionalDependencies=\"$(NOINHERIT) "
|
||||
<< this->Makefile->GetSafeDefinition(standardLibsVar.c_str());
|
||||
if(this->GetVersion() < VS8)
|
||||
if(this->GetVersion() < VS8 || this->FortranProject)
|
||||
{
|
||||
this->Internal->OutputObjects(fout, &target, " ");
|
||||
}
|
||||
@ -1423,7 +1423,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
|
||||
this->WriteGroup(&sg, target, fout, libName, configs);
|
||||
}
|
||||
|
||||
if(this->GetVersion() >= VS8)
|
||||
if(this->GetVersion() >= VS8 && !this->FortranProject)
|
||||
{
|
||||
// VS >= 8 support per-config source locations so we
|
||||
// list object library content as external objects.
|
||||
|
Loading…
Reference in New Issue
Block a user