diff options
author | Brad King <brad.king@kitware.com> | 2004-11-03 12:27:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-11-03 12:27:44 (GMT) |
commit | e34207c1f0493c002da8c74897b81a72ef3ef2d4 (patch) | |
tree | 989438c9c4828832bb0b816d02e037bd18e04756 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | d46d8df0edfcfac46390319db8213601a5cd4260 (diff) | |
download | CMake-e34207c1f0493c002da8c74897b81a72ef3ef2d4.zip CMake-e34207c1f0493c002da8c74897b81a72ef3ef2d4.tar.gz CMake-e34207c1f0493c002da8c74897b81a72ef3ef2d4.tar.bz2 |
COMP: Fix new cmGeneratedFileStream for MSVC.
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index ecad472..0184833 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -289,15 +289,12 @@ void cmGlobalVisualStudio7Generator::OutputSLNFile(cmLocalGenerator* root, fname += "/"; fname += root->GetMakefile()->GetProjectName(); fname += ".sln"; - cmGeneratedFileStream fout(fname.c_str()); + cmGeneratedFileStream fout(fname.c_str(), true); if(!fout) { - cmSystemTools::Error("Error can not open DSW file for write: ", - fname.c_str()); - cmSystemTools::ReportLastSystemError(""); return; } - this->WriteSLNFile(fout.GetStream(), root, generators); + this->WriteSLNFile(fout, root, generators); } // output the SLN file |