From c15adc922166ca84c03a4ae4f076256a93046ece Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 14 Jun 2004 10:28:04 -0400 Subject: [PATCH] BUG: fix sub project path problem --- Source/cmGlobalVisualStudio6Generator.cxx | 3 ++- Source/cmGlobalVisualStudio71Generator.cxx | 3 ++- Source/cmGlobalVisualStudio7Generator.cxx | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx index e58521354..e6f4bad1c 100644 --- a/Source/cmGlobalVisualStudio6Generator.cxx +++ b/Source/cmGlobalVisualStudio6Generator.cxx @@ -216,7 +216,8 @@ void cmGlobalVisualStudio6Generator::WriteDSWFile(std::ostream& fout, this->WriteDSWHeader(fout); // Get the home directory with the trailing slash - std::string homedir = m_CMakeInstance->GetHomeDirectory(); +#undef GetCurrentDirectory + std::string homedir = root->GetMakefile()->GetCurrentDirectory(); homedir += "/"; unsigned int i; diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index 5d3c19d25..3db033dc3 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -48,7 +48,8 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout, this->WriteSLNHeader(fout); // Get the home directory with the trailing slash - std::string homedir = m_CMakeInstance->GetHomeDirectory(); + #undef GetCurrentDirectory + std::string homedir = root->GetMakefile()->GetCurrentDirectory(); homedir += "/"; bool doneAllBuild = false; bool doneRunTests = false; diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 7935f2cf3..0e2cc338d 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -316,7 +316,8 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout, this->WriteSLNHeader(fout); // Get the home directory with the trailing slash - std::string homedir = m_CMakeInstance->GetHomeDirectory(); +#undef GetCurrentDirectory + std::string homedir = root->GetMakefile()->GetCurrentDirectory(); homedir += "/"; bool doneAllBuild = false; bool doneRunTests = false;