BUG: fix sub project path problem

This commit is contained in:
Bill Hoffman 2004-06-14 10:28:04 -04:00
parent a014eee86a
commit c15adc9221
3 changed files with 6 additions and 3 deletions

View File

@ -216,7 +216,8 @@ void cmGlobalVisualStudio6Generator::WriteDSWFile(std::ostream& fout,
this->WriteDSWHeader(fout); this->WriteDSWHeader(fout);
// Get the home directory with the trailing slash // Get the home directory with the trailing slash
std::string homedir = m_CMakeInstance->GetHomeDirectory(); #undef GetCurrentDirectory
std::string homedir = root->GetMakefile()->GetCurrentDirectory();
homedir += "/"; homedir += "/";
unsigned int i; unsigned int i;

View File

@ -48,7 +48,8 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
this->WriteSLNHeader(fout); this->WriteSLNHeader(fout);
// Get the home directory with the trailing slash // Get the home directory with the trailing slash
std::string homedir = m_CMakeInstance->GetHomeDirectory(); #undef GetCurrentDirectory
std::string homedir = root->GetMakefile()->GetCurrentDirectory();
homedir += "/"; homedir += "/";
bool doneAllBuild = false; bool doneAllBuild = false;
bool doneRunTests = false; bool doneRunTests = false;

View File

@ -316,7 +316,8 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout,
this->WriteSLNHeader(fout); this->WriteSLNHeader(fout);
// Get the home directory with the trailing slash // Get the home directory with the trailing slash
std::string homedir = m_CMakeInstance->GetHomeDirectory(); #undef GetCurrentDirectory
std::string homedir = root->GetMakefile()->GetCurrentDirectory();
homedir += "/"; homedir += "/";
bool doneAllBuild = false; bool doneAllBuild = false;
bool doneRunTests = false; bool doneRunTests = false;