added option to shut off automatic rebuilding
This commit is contained in:
parent
fea02da5bd
commit
61da8f64bf
|
@ -247,15 +247,22 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout,
|
|||
// Write the DSP file's header.
|
||||
this->WriteDSPHeader(fout, libName, target, sourceGroups);
|
||||
|
||||
// if we should add regen rule then...
|
||||
const char *suppRegenRule =
|
||||
m_Makefile->GetDefinition("CMAKE_SUPPRESS_REGENERATION");
|
||||
|
||||
// Find the group in which the CMakeLists.txt source belongs, and add
|
||||
// the rule to generate this DSP file.
|
||||
for(std::vector<cmSourceGroup>::reverse_iterator sg = sourceGroups.rbegin();
|
||||
sg != sourceGroups.rend(); ++sg)
|
||||
if (!cmSystemTools::IsOn(suppRegenRule))
|
||||
{
|
||||
if(sg->Matches("CMakeLists.txt"))
|
||||
for(std::vector<cmSourceGroup>::reverse_iterator sg = sourceGroups.rbegin();
|
||||
sg != sourceGroups.rend(); ++sg)
|
||||
{
|
||||
this->AddDSPBuildRule(*sg);
|
||||
break;
|
||||
if(sg->Matches("CMakeLists.txt"))
|
||||
{
|
||||
this->AddDSPBuildRule(*sg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -656,19 +656,27 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
|
|||
this->WriteConfigurations(fout, libName, target);
|
||||
|
||||
fout << "\t<Files>\n";
|
||||
|
||||
// if we should add regen rule then...
|
||||
const char *suppRegenRule =
|
||||
m_Makefile->GetDefinition("CMAKE_SUPPRESS_REGENERATION");
|
||||
|
||||
// Find the group in which the CMakeLists.txt source belongs, and add
|
||||
// the rule to generate this VCProj file.
|
||||
for(std::vector<cmSourceGroup>::reverse_iterator sg = sourceGroups.rbegin();
|
||||
sg != sourceGroups.rend(); ++sg)
|
||||
if (!cmSystemTools::IsOn(suppRegenRule))
|
||||
{
|
||||
if(sg->Matches("CMakeLists.txt"))
|
||||
for(std::vector<cmSourceGroup>::reverse_iterator sg =
|
||||
sourceGroups.rbegin();
|
||||
sg != sourceGroups.rend(); ++sg)
|
||||
{
|
||||
this->AddVCProjBuildRule(*sg);
|
||||
break;
|
||||
if(sg->Matches("CMakeLists.txt"))
|
||||
{
|
||||
this->AddVCProjBuildRule(*sg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Loop through every source group.
|
||||
for(std::vector<cmSourceGroup>::const_iterator sg = sourceGroups.begin();
|
||||
sg != sourceGroups.end(); ++sg)
|
||||
|
|
Loading…
Reference in New Issue