summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 3086987..5e4e44e 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -256,6 +256,11 @@ void cmGlobalVisualStudio7Generator::Generate()
{
gen[0]->GetMakefile()->
AddUtilityCommand("ALL_BUILD", "echo","\"Build all projects\"",false,srcs);
+ std::string cmake_command =
+ m_LocalGenerators[0]->GetMakefile()->GetDefinition("CMAKE_COMMAND");
+ gen[0]->GetMakefile()->
+ AddUtilityCommand("INSTALL", cmake_command.c_str(),
+ "-DBUILD_TYPE=$(IntDir) -P cmake_install.cmake",false,srcs);
}
}
@@ -314,6 +319,7 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout,
homedir += "/";
bool doneAllBuild = false;
bool doneRunTests = false;
+ bool doneInstall = false;
// For each cmMakefile, create a VCProj for it, and
// add it to this SLN file
@@ -407,6 +413,17 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout,
doneAllBuild = true;
}
}
+ if(l->first == "INSTALL")
+ {
+ if(doneInstall)
+ {
+ skip = true;
+ }
+ else
+ {
+ doneInstall = true;
+ }
+ }
if(l->first == "RUN_TESTS")
{
if(doneRunTests)