diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:29:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:29:15 (GMT) |
commit | 791aa6052b9033e89645b324b1c99222936981df (patch) | |
tree | fdd95f48321d8074e4c97eaba0b03da3e885d409 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6 (diff) | |
download | CMake-791aa6052b9033e89645b324b1c99222936981df.zip CMake-791aa6052b9033e89645b324b1c99222936981df.tar.gz CMake-791aa6052b9033e89645b324b1c99222936981df.tar.bz2 |
ENH: add support for out of source source
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index fb6e8c4..238d392 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -327,9 +327,9 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout, // Write out the header for a SLN file this->WriteSLNHeader(fout); - // Get the home directory with the trailing slash - std::string homedir = root->GetMakefile()->GetCurrentDirectory(); - homedir += "/"; + // Get the start directory with the trailing slash + std::string rootdir = root->GetMakefile()->GetStartOutputDirectory(); + rootdir += "/"; bool doneAllBuild = false; bool doneRunTests = false; bool doneInstall = false; @@ -346,10 +346,10 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout, cmMakefile* mf = generators[i]->GetMakefile(); // Get the source directory from the makefile - std::string dir = mf->GetStartDirectory(); + std::string dir = mf->GetStartOutputDirectory(); // remove the home directory and / from the source directory // this gives a relative path - cmSystemTools::ReplaceString(dir, homedir.c_str(), ""); + cmSystemTools::ReplaceString(dir, rootdir.c_str(), ""); // Get the list of create dsp files names from the cmVCProjWriter, more // than one dsp could have been created per input CMakeLists.txt file |