|
@@ -366,7 +366,6 @@ void cmGlobalVisualStudio7Generator::OutputSLNFile()
|
|
|
|
|
|
|
|
void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
|
|
void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
|
|
|
std::ostream& fout,
|
|
std::ostream& fout,
|
|
|
- cmLocalGenerator* root,
|
|
|
|
|
OrderedTargetDependSet const& projectTargets)
|
|
OrderedTargetDependSet const& projectTargets)
|
|
|
{
|
|
{
|
|
|
// loop over again and write out configurations for each target
|
|
// loop over again and write out configurations for each target
|
|
@@ -392,8 +391,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
const std::set<std::string>& configsPartOfDefaultBuild =
|
|
const std::set<std::string>& configsPartOfDefaultBuild =
|
|
|
- this->IsPartOfDefaultBuild(root->GetMakefile()->GetProjectName(),
|
|
|
|
|
- target);
|
|
|
|
|
|
|
+ this->IsPartOfDefaultBuild(projectTargets, target);
|
|
|
const char *vcprojName =
|
|
const char *vcprojName =
|
|
|
target->GetProperty("GENERATOR_FILE_NAME");
|
|
target->GetProperty("GENERATOR_FILE_NAME");
|
|
|
if (vcprojName)
|
|
if (vcprojName)
|
|
@@ -579,7 +577,7 @@ void cmGlobalVisualStudio7Generator
|
|
|
|
|
|
|
|
// Write out the configurations for all the targets in the project
|
|
// Write out the configurations for all the targets in the project
|
|
|
fout << "\tGlobalSection(ProjectConfiguration) = postSolution\n";
|
|
fout << "\tGlobalSection(ProjectConfiguration) = postSolution\n";
|
|
|
- this->WriteTargetConfigurations(fout, root, orderedProjectTargets);
|
|
|
|
|
|
|
+ this->WriteTargetConfigurations(fout, orderedProjectTargets);
|
|
|
fout << "\tEndGlobalSection\n";
|
|
fout << "\tEndGlobalSection\n";
|
|
|
|
|
|
|
|
// Write out global sections
|
|
// Write out global sections
|
|
@@ -981,8 +979,7 @@ cmGlobalVisualStudio7Generator
|
|
|
|
|
|
|
|
std::set<std::string>
|
|
std::set<std::string>
|
|
|
cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
|
|
cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
|
|
|
- const std::string& project,
|
|
|
|
|
- cmTarget const* target)
|
|
|
|
|
|
|
+ OrderedTargetDependSet const& projectTargets, cmTarget const* target)
|
|
|
{
|
|
{
|
|
|
std::set<std::string> activeConfigs;
|
|
std::set<std::string> activeConfigs;
|
|
|
// if it is a utilitiy target then only make it part of the
|
|
// if it is a utilitiy target then only make it part of the
|
|
@@ -992,7 +989,7 @@ cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
|
|
|
{
|
|
{
|
|
|
return activeConfigs;
|
|
return activeConfigs;
|
|
|
}
|
|
}
|
|
|
- if(type == cmTarget::UTILITY && !this->IsDependedOn(project, target))
|
|
|
|
|
|
|
+ if(type == cmTarget::UTILITY && !this->IsDependedOn(projectTargets, target))
|
|
|
{
|
|
{
|
|
|
return activeConfigs;
|
|
return activeConfigs;
|
|
|
}
|
|
}
|
|
@@ -1010,6 +1007,24 @@ cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
|
|
|
return activeConfigs;
|
|
return activeConfigs;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+bool
|
|
|
|
|
+cmGlobalVisualStudio7Generator
|
|
|
|
|
+::IsDependedOn(OrderedTargetDependSet const& projectTargets,
|
|
|
|
|
+ cmTarget const* targetIn)
|
|
|
|
|
+{
|
|
|
|
|
+ for (OrderedTargetDependSet::const_iterator l = projectTargets.begin();
|
|
|
|
|
+ l != projectTargets.end(); ++l)
|
|
|
|
|
+ {
|
|
|
|
|
+ cmTarget const& target = **l;
|
|
|
|
|
+ TargetDependSet const& tgtdeps = this->GetTargetDirectDepends(target);
|
|
|
|
|
+ if(tgtdeps.count(targetIn))
|
|
|
|
|
+ {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return false;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|
|
|
static cmVS7FlagTable cmVS7ExtraFlagTable[] =
|
|
static cmVS7FlagTable cmVS7ExtraFlagTable[] =
|
|
|
{
|
|
{
|