فهرست منبع

BUG: fix sub project path problem

Bill Hoffman 22 سال پیش
والد
کامیت
c15adc9221

+ 2 - 1
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;

+ 2 - 1
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;

+ 2 - 1
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;