diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-24 21:20:44 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-24 21:20:44 (GMT) |
commit | 07d0e776ad97d715b7ffa8484fc1da2deb9694dc (patch) | |
tree | 1fe319813f7a39799a93a3ac13a5f42d1906f93a /Source/cmGlobalVisualStudio6Generator.cxx | |
parent | 586a9427d3dd8b4a99f7a3d545814f8b9bf42453 (diff) | |
download | CMake-07d0e776ad97d715b7ffa8484fc1da2deb9694dc.zip CMake-07d0e776ad97d715b7ffa8484fc1da2deb9694dc.tar.gz CMake-07d0e776ad97d715b7ffa8484fc1da2deb9694dc.tar.bz2 |
BUG: More fixing of support for global target son visual studio
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio6Generator.cxx | 53 |
1 files changed, 36 insertions, 17 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx index 8ddd654..f720b1f 100644 --- a/Source/cmGlobalVisualStudio6Generator.cxx +++ b/Source/cmGlobalVisualStudio6Generator.cxx @@ -169,23 +169,6 @@ void cmGlobalVisualStudio6Generator::Generate() gen[0]->GetMakefile()-> AddUtilityCommand("ALL_BUILD", false, no_output, no_depends, no_working_dir, "echo", "Build all projects"); - std::string cmake_command = - m_LocalGenerators[0]->GetMakefile()->GetRequiredDefinition("CMAKE_COMMAND"); - gen[0]->GetMakefile()-> - AddUtilityCommand("INSTALL", false, no_output, no_depends, no_working_dir, - cmake_command.c_str(), - "-DBUILD_TYPE=$(IntDir)", "-P", "cmake_install.cmake"); - - // Make the INSTALL target depend on ALL_BUILD unless the - // project says to not do so. - const char* noall = - gen[0]->GetMakefile() - ->GetDefinition("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"); - if(!noall || cmSystemTools::IsOff(noall)) - { - cmTarget* install = gen[0]->GetMakefile()->FindTarget("INSTALL"); - install->AddUtility("ALL_BUILD"); - } } } @@ -215,6 +198,9 @@ void cmGlobalVisualStudio6Generator::WriteDSWFile(std::ostream& fout, bool doneAllBuild = false; bool doneRunTests = false; bool doneInstall = false; + bool doneEditCache = false; + bool doneRebuildCache = false; + bool donePackage = false; for(i = 0; i < generators.size(); ++i) { @@ -322,6 +308,39 @@ void cmGlobalVisualStudio6Generator::WriteDSWFile(std::ostream& fout, doneRunTests = true; } } + if(l->first == "EDIT_CACHE") + { + if(doneEditCache) + { + skip = true; + } + else + { + doneEditCache = true; + } + } + if(l->first == "REBUILD_CACHE") + { + if(doneRebuildCache) + { + skip = true; + } + else + { + doneRebuildCache = true; + } + } + if(l->first == "PACKAGE") + { + if(donePackage) + { + skip = true; + } + else + { + donePackage = true; + } + } if(!skip) { this->WriteProject(fout, si->c_str(), dir.c_str(),l->second); |