summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 7935f2c..0e2cc33 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;