diff options
author | Brad King <brad.king@kitware.com> | 2005-04-29 14:11:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-29 14:11:24 (GMT) |
commit | 48702f8a8d5c44a7b5f5a848ac83efde3edbb469 (patch) | |
tree | c73a0fabdec6702598cbfedb7edfbea9998bf3f9 /Source/cmGlobalVisualStudio71Generator.cxx | |
parent | cf5c2b7ae8a8613258c02a182eec24b09cdf8a2e (diff) | |
download | CMake-48702f8a8d5c44a7b5f5a848ac83efde3edbb469.zip CMake-48702f8a8d5c44a7b5f5a848ac83efde3edbb469.tar.gz CMake-48702f8a8d5c44a7b5f5a848ac83efde3edbb469.tar.bz2 |
COMP: Converting INSTALL->ALL_BUILD dependency implementation to use the AddUtility method on a target. This significantly simplifies the implementation and removes warnings about hiding virtual functions.
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio71Generator.cxx | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index 8d87f2a..455ae4a 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -130,7 +130,6 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, if ((l->second.GetType() != cmTarget::INSTALL_FILES) && (l->second.GetType() != cmTarget::INSTALL_PROGRAMS)) { - const char* extra_depend = 0; bool skip = false; if(l->first == "ALL_BUILD" ) { @@ -153,15 +152,6 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, { doneInstall = true; } - // Make the INSTALL target depend on ALL_BUILD unless the - // project says to not do so. - const char* noall = - root->GetMakefile() - ->GetDefinition("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"); - if(!noall || cmSystemTools::IsOff(noall)) - { - extra_depend = "ALL_BUILD"; - } } if(l->first == "RUN_TESTS") { @@ -176,8 +166,7 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, } if(!skip) { - this->WriteProject(fout, si->c_str(), dir.c_str(),l->second, - extra_depend); + this->WriteProject(fout, si->c_str(), dir.c_str(),l->second); } ++si; } @@ -240,8 +229,7 @@ void cmGlobalVisualStudio71Generator::WriteProject(std::ostream& fout, const char* dspname, const char* dir, - const cmTarget& t, - const char* extra_depend) + const cmTarget& t) { std::string d = cmSystemTools::ConvertToOutputPath(dir); fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"" @@ -249,7 +237,7 @@ cmGlobalVisualStudio71Generator::WriteProject(std::ostream& fout, << d << "\\" << dspname << ".vcproj\", \"{" << this->GetGUID(dspname) << "}\"\n"; fout << "\tProjectSection(ProjectDependencies) = postProject\n"; - this->WriteProjectDepends(fout, dspname, dir, t, extra_depend); + this->WriteProjectDepends(fout, dspname, dir, t); fout << "\tEndProjectSection\n"; fout <<"EndProject\n"; @@ -265,8 +253,7 @@ cmGlobalVisualStudio71Generator ::WriteProjectDepends(std::ostream& fout, const char* dspname, const char*, - const cmTarget& target, - const char* extra_depend) + const cmTarget& target) { // insert Begin Project Dependency Project_Dep_Name project stuff here if (target.GetType() != cmTarget::STATIC_LIBRARY) @@ -291,13 +278,6 @@ cmGlobalVisualStudio71Generator } } - // Add the extra dependency if requested. - if(extra_depend) - { - fout << "\t\t{" << this->GetGUID(extra_depend) << "} = {" - << this->GetGUID(extra_depend) << "}\n"; - } - std::set<cmStdString>::const_iterator i, end; // write utility dependencies. i = target.GetUtilities().begin(); |